Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-14Implemented XPBD with distance and volume constraints. Self collisions ↵soc-2022-soft-bodiesAarnav Dhanuka
implemented is not working. Point cache and UI have been attatched.
2022-07-11Fixed a few bugs. Added floating point error handling. Added view for ↵Aarnav Dhanuka
multiple faces per tet for better visualization. Added support for removing external tet removal using BVH tree
2022-07-03First pass at the tetrahedralization code, there are some bugs present that ↵Aarnav Dhanuka
need to be addressed. Currently the more pressing bug is wrong tet being returned by getContainingTet()
2022-06-10Fix regression in the recent unit system changeRamil Roosileht
Resolves unit tests failure since the D15085. Also addressed API documentation and formatting format. Differential Revision: https://developer.blender.org/D15162
2022-06-10Fix T98727: Dynamic Paint does not update normalsPhilipp Oeser
Caused by {rB6a3c3c77b3eb}. Displacement and wave were tagging the original mesh normals dirty, instead the result's normals need tagging. Seems like a typo in above commit (similar to rBfe43c170831f). Maniphest Tasks: T98727 Differential Revision: https://developer.blender.org/D15165
2022-06-10GHOST: add back-trace handler to the APICampbell Barton
Add a back-trace handler to GHOST, so error handlers can include a back-trace (when supported). No functional changes.
2022-06-10Cleanup: Clang tidyHans Goudey
2022-06-10Fix: Missing includeHans Goudey
2022-06-09UI: Sculpt Curves Slide iconDalai Felinto
2022-06-09Fix: Crash in selection paint brush with empty curvesHans Goudey
2022-06-09FCurve: optimize search from an RNA path + index.Bastien Montagne
By checking the index value first instead of a full fledge string comparision in `BKE_fcurve_find`, we can make that code significatly faster (from about 10% in a Heist production file to over 45% in a heavily animated test file). While this code was already very fast (a few microseconds per call typically), it gets called a lot from the UI (several hundreds of time per refresh), among other things. NOTE: the `UNLIKELY` hint is responsible for 25% to 30% of the speed improvement.
2022-06-09Fix variable being used without being initializedGermano Cavalcante
2022-06-09Cleanup: use C-style comments, add missing doxy sectionCampbell Barton
2022-06-09Cleanup: use const variables & argumentsCampbell Barton
2022-06-09Curves: Port delete geometry node to the new curves typeHans Goudey
Add a method to remove points from the new curves type, just like the existing curve removal function. No functional changes are expected. The code is simpler because all data is just stored as attributes, but also different because the point data for all curves is stored in the same arrays. Similar performance improvements as other commits in T95443 are expected, expecially for cases where there are many small curves. Differential Revision: https://developer.blender.org/D15130
2022-06-09Fix T98686: Cant rename local NLA tracks within a local library override ↵Bastien Montagne
data-block. We need a specific exception to general rule 'no rename of anim channels in liboverride data' for the locally-inserted NLA tracks.
2022-06-09Cleanup: return true/false instead of 0/1 when returnin boolean.Bastien Montagne
2022-06-09Fix T78815: Redraw UV Editor on collection visibility changeChris Blackbourn
2022-06-09UI: Tooltip Edit - Copy to selected buttonAaron Carlisle
This commit changes the tool tip for the "Copy To Selected Button" operator. The exiting tool tip for this operator suggests that it will "copy property to selected objects or bones". However, it will only copies the property value to the selected objects or bones if the property already exists on the selected items. It does not copy the property. Differential Revision: https://developer.blender.org/D14528
2022-06-09Fix T98688: Snapping not working in curve objects with evaluated geometryGermano Cavalcante
It's an old behavior. Not really considered a bug. But snapping to faces is already supported in this case. And allowing snapping to other elements is not disruptive.
2022-06-09Cleanup: spelling in comments & variablesCampbell Barton
2022-06-09Cleanup: warningsCampbell Barton
2022-06-09Cleanup: formatCampbell Barton
2022-06-09Fix software cursor being used with absolute events in WaylandCampbell Barton
The software cursor was being enabled with absolute events, causing a problem with absolute tablet events. This caused both cursors to be visible at once when using a tablet (with D15152 applied).
2022-06-09Fix assert triggered when snapping to evaluated geometry of a CurveGermano Cavalcante
Curves can have a Mesh evaluated, but only objects of type Mesh have EditMesh. This bug is harmless because `sctx->editmesh_caches.remove(value)` only works with pointers and `BKE_editmesh_from_object(ob_eval)`, even though it doesn't actually return a `BMEditMesh`, it still returns a pointer that doesn't exist as a key.
2022-06-09Cleanup: quiet warningsCampbell Barton
2022-06-09Fix armatures not visible in VRPeter Kim
Now that VR offscreen drawing accounts for object type visibility, armatures should be displayed when specified.
2022-06-08Paint: Fix Image Editor Cursor Disappearing (T90120)Joseph Eagar
This patch fixes T90120. The fundamental problem is that 2d and the old 3d paint modes share a single Paint struct, ToolSettings->imapaint. This patch is a temporary fix until the new 3d paint mode (which has its own Paint struct) is released. The patch works by listening for `NC_SCENE|ND_MODE` inside `image_listener` in `space_image.c`. It does not use `ED_space_image_paint_update` since that requires a `bMain.` Instead it calls `paint_cursor_start` (which is promoted to `ED_paint_cursor_start`). `image_paint_poll` is also promoted to an `ED_` function. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D14946 Ref D14946
2022-06-08Sculpt: PBVH Draw Support for EEVEEJoseph Eagar
This patch adds support for PBVH drawing in EEVEE. Notes: # PBVH_FACES only. For Multires we'll need an API to get/cache attributes. DynTopo support will be merged in later with sculpt-dev's DynTopo implementation. # Supports vertex color and UV attributes only; other types can be added fairly easily though. # Workbench only sends the active vertex color and UV layers to the GPU. # Added a new draw engine API method, DRW_cdlayer_attr_aliases_add. Please review. # The vertex format object is now stored in the pbvh. Reviewed By: Clément Foucault & Brecht Van Lommel & Jeroen Bakker Differential Revision: https://developer.blender.org/D13897 Ref D13897
2022-06-08D14823: Adds operator to duplicate the active color attribute layerDennis Ranish
Fixes T97706 Adds operator to duplicate the active color attribute layer. Adds `"Color Attribute Specials"` menu to color attribute ui to access the `"geometry.color_attribute_duplicate"` operator. Internally adds a function that duplicates a referenced CustomDataLayer - `BKE_id_attribute_duplicate` mostly copies the existing `BKE_id_attribute_new` - but gets the type and domain from the referenced layer - and copies the data from the old layer into the new layer Reviewed By: Joseph Eagar & Hans Goudey & Julien Kaspar Differential Revision: https://developer.blender.org/D14823 Ref D14823
2022-06-08D15085: Fix numbers jumping in edit voxel size widgetRamil Roosileht
Introduces an option for BKE_unit_value_as_string to skip stripping of zeroes, thus reducing flickering when using edit voxel size widget. {F13125416} Reviewed By: Julien Kaspar & Joseph Eagar Differential Revision: https://developer.blender.org/D15085 Ref D15085
2022-06-08Fix: Incorrect curves and pointcloud bounding boxesHans Goudey
The generic bounds utility used an incorrect initial value. The value cannot be zero-initialized, because that breaks the case where all values are greater than zero.
2022-06-08LibOverride: Make 'image/movieclip user` properties editable.Bastien Montagne
2022-06-08Fix (unreported) missing rna path for some background image properties.Bastien Montagne
RNA camera code did not handle path for its image/movieclip users sub-data, and moviclip RNA struct definition did not have a rna path function at all.
2022-06-08RNA nodetree: improve ImageUser path helper.Bastien Montagne
Refactor the code, and optimize it slightly (no need e.g. to check for nodes when the nodetree is of a type that cannot have image user nodes).
2022-06-08Curves: use radius of middle point to determine curve shapeJacques Lucke
See {rBb69aad60bda23a53482b2c2ae98715c23a715bc8} for more details.
2022-06-08Fix: incorrect curve parameter for catmull rom curvesJacques Lucke
2022-06-08Fix: Heap buffer overflow in new curves set type nodeHans Goudey
2022-06-08Curves: Port set type node to new data-blockHans Goudey
This commit ports the "Set Spline Type" node to the new curves type. Performance should be improved in similar ways to the other refactors from the conversion task (T95443). Converting to and from Catmull Rom curves is now supported. There are a few cases where a lot of work can be skipped: when the number of points doesn't change, and when the types already match the goal type. The refactor has a few other explicit goals as well: - Don't count on initialization of attribute arrays when they are first allocated. - Avoid copying the entire data-block when possible. - Make decisions about which attributes to copy when changing curves more obvious. - Use higher-level methods to copy data between curve points. - Optimize for the common cases of single types and full selections. - Process selected curves of the same types in the same loop. The Bezier to NURBS conversion is written by Piotr Makal (@pmakal). Differential Revision: https://developer.blender.org/D14769
2022-06-08Fix T98624: Curve Pen NURBS extrusion creates duplicatesDilith Jayakody
The initial point count check was only being done for Bezier curves. This revision fixes T98624 by adding the check for NURBS curves as well. Reviewed By: HooglyBoogly Maniphest Tasks: T98624 Differential Revision: https://developer.blender.org/D15140
2022-06-08Fix T98620: Video sequencer screen corruption occurs when resizing.Jeroen Bakker
Added Windows/Intel GPU to the list of work-a-rounds. This will reduce the performance when using Intel GPUs on all platforms.
2022-06-08Cleanup: Move sculpt_automasking.c to c++Joseph Eagar
2022-06-08Fix T98565: remove unused BRUSH_PAINT icon definitionPhilipp Oeser
This could spam the console with errors (potentionally slowing down in cases). Was added in rBeae36be372a6, but not used. Maniphest Tasks: T98565 Differential Revision: https://developer.blender.org/D15113
2022-06-08Cleanup: Remove unnecessary namespace specificationHans Goudey
2022-06-08Cleanup: Use const variables/pointersHans Goudey
2022-06-08Attributes: Use names instead of layers for some functionsHans Goudey
This mirrors the C++ attribute API better, separates the implementation of attributes from CustomData slightly, and makes functions simpler, clearer, and safer. Also fix an issue with removing an attribute caused by 97712b018df71c meant the first attribute with the given type was removed instead of the attribute with the given name.
2022-06-08Fix: Improve poll for convert attribute operatorHans Goudey
Converting an attribute does not work from edit mode because there is no attribute API implemented for BMesh, so disable the operation in that mode and add a poll message.
2022-06-08Fix T98618: Drivers don't automatically update when changing active cameraSergey Sharybin
Active camera is a property of Scene, so need to take scene changes into account for such drivers to work reliably. The fix covers all the common cases of such configurations, but some of them might not be yet fully supported. Mainly cases when the target ID is not covered by the copy-on-write mechanism. There is a fuller explanation available in the code for the ease of reading by the future generations. Differential Revision: https://developer.blender.org/D15146
2022-06-08CMake: optionally disable OBJ, STL & GPencil SVG supportCampbell Barton
The following CMake options have been added (enabled by default), except for the lite build configuration. - WITH_IO_STL - WITH_IO_WAVEFRONT_OBJ - WITH_IO_GPENCIL (for grease pencil SVG importing). Note that it was already possible to disable grease pencil export by disabling WITH_PUGIXML & WITH_HARU. This is intended to keep the lite builds fast and small for building, linking & execution. Reviewed By: iyadahmed2001, aras_p, antoniov, mont29 Ref D15141
2022-06-08GHOST/Wayland: draw a software-cursor when wrapping cursor motionCampbell Barton
As Wayland doesn't support moving the cursor, draw a cross-hair cursor at the location used by Blender. Without this, the cursor was locked at the location where grab started, making some actions unusable since the cursor location was invisible. Resolves T77311.