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
2021-11-13BLF: Use Floats for Font Point SizesHarley Acheson
Allow the use of floating-point values for font point sizes, which allows greater precision and flexibility for text output. See D8960 for more information, details, and justification. Differential Revision: https://developer.blender.org/D8960 Reviewed by Campbell Barton
2021-11-13Cleanup: spelling in comments, comment block formattingCampbell Barton
2021-11-13Cleanup: clang-formatCampbell Barton
2021-11-12Fix T91826: Inconsistent node socket name identifier separatorHans Goudey
Previously both `.` and `_` were used as separators when finding a unique name for a socket. This removes the use of `.`, since `_` was more common. It also does versioning for all of a file's node trees to make sure that they all use the `_` convention. Differential Revision: https://developer.blender.org/D13181
2021-11-12Merge remote-tracking branch 'origin/blender-v3.0-release'Sybren A. Stüvel
2021-11-12Assets: Store Action sub-type in asset metadataSybren A. Stüvel
Blender 3.0 will only support single-frame Actions in the pose library. The goal of this patch is to lay the groundwork for making it possible for the Asset Browser to reject/hide "animation snippet" Action assets. Determining whether an Action has one or more frames (i.e. whether it has a single pose or animation) requires inspecting the Action itself, and thus loading the data-block itself. This would make it impossible to quickly determine from the asset browser. To solve this, the Action is inspected before saving, and a `"is_single_frame"` boolean (well, 0/1 integer) IDProperty is added. Reviewed by: Severin Differential Revision: https://developer.blender.org/D13202
2021-11-12Cleanup/document BKE_blender_copybuffer.Bastien Montagne
* Rename the 'copy' functions to make it clear they belong to the same 'group' and are to be used together. * Fix `flag` parameter of `BKE_copybuffer_paste` being a short instead of an int. * Improve documentation.
2021-11-12Merge branch 'blender-v3.0-release'Campbell Barton
2021-11-12Merge branch 'blender-v3.0-release'Campbell Barton
2021-11-12Fix T91444: Edge Loop Preview fails with two Mirror ModifiersCampbell Barton
The mirror modifiers merge option caused unnecessary re-ordering to the vertex array with original vertices merging into their copies. While this wasn't an error, it meant creating a 1:1 mapping from input vertices to their final output wasn't reliable (when looping over vertices first to last) as is done in BKE_editmesh_vert_coords_when_deformed. As merging in either direction is supported, keep the source meshes vertices in-order since it allows the vertex coordinates to be extracted.
2021-11-12Cleanup: use term sequence_strip instead of vse_stripCampbell Barton
2021-11-11Merge branch 'blender-v3.0-release'Jacques Lucke
2021-11-11Fix: wrong field inferencing with unavailable socketsJacques Lucke
2021-11-11Merge branch 'blender-v3.0-release'Hans Goudey
2021-11-11Fix: Prevent use of uninitialized memory when creating Bezier splineMartijn Versteegh
When Constructing bezier splines from dna, the positions of the left/right handles were set directly in the internal vectors, by requesting a reference to them. The problem is that BezierSpline::handle_positions_left() calls ensure_auto_handles() before returning the reference. That function does some calculations on uninitialized memory if the positions array is not yet filled. Differential Revision: https://developer.blender.org/D13107
2021-11-11Cleanup: spelling in commentsCampbell Barton
2021-11-10Merge branch 'blender-v3.0-release'Jeroen Bakker
2021-11-10Fix T91518: crash when recalculating looptris after clearing geometry.Jeroen Bakker
When clearing geometry the runtime mutexes of a mesh were freed. This resulted in crashes afterwards. The clear geometry is an RNA function so would only effect when using from scripts. This patch separates init/freeing of the mutexes from other code so they can be used when needed. Reviewed By: mont29 Maniphest Tasks: T91518 Differential Revision: https://developer.blender.org/D13142
2021-11-09Merge branch 'blender-v3.0-release'Jacques Lucke
2021-11-09Fix T92908: print warning when instance recursion limit is reachedJacques Lucke
Currently we have a fixed instance recursion limit. While we want to lift this limitation at some point, that is out of scope for a bug fix. For now just print a warning to make it easier to detect the issue. Differential Revision: https://developer.blender.org/D13162
2021-11-09Cleanup: spelling, C style commentsCampbell Barton
2021-11-09Merge branch 'blender-v3.0-release'Campbell Barton
2021-11-09Fix T91923: Save/Apply as Shape Key ignores shape keysCampbell Barton
Support virtual modifiers when using applying the modifier as a shape.
2021-11-09Merge branch 'blender-v3.0-release'Jacques Lucke
2021-11-09Fix T92934: crash rendering with wrong image pathJacques Lucke
These null checks were missing in rB0c3b215e7d5456878b155d13440864f49ad1f230. Differential Revision: https://developer.blender.org/D13157
2021-11-09Asset Catalogs: add test for proper shortening of simple namesSybren A. Stüvel
Catalog simple names are supposed to fit into the DNA field `char AssetMetaData::catalog_simple_name[64]`, and thus should be shortened appropriately. This was already happening, but is now also covered by a test. No functional changes.
2021-11-08Cleanup: remove redundant arg when forcing zero initializationGermano Cavalcante
2021-11-08Merge branch 'blender-v3.0-release'Campbell Barton
2021-11-08Fix T92481: Memory leak with subdivision surface modifierCampbell Barton
Interpolation vertex data on loose edges was writing into already allocated data. Resolve this by skipping vertex end-points for custom-data interpolation which has already been copied from the source mesh. Reviewed By: sergey Ref D13082
2021-11-08Fix inconsistent creation of `NodeTreeTypeUndefined` type of node treeBastien Montagne
Currently, when creating a new node tree ID, its `typeinfo` is set to `NodeTreeTypeUndefined`, but its `type` enum value is left to `0`, aka `NTREE_SHADER`. This patch adds a new `NTREE_UNDIFINED` value, and use it for `NodeTreeTypeUndefined` types of node trees. NOTE: While it is not clear whether that actually fixes issues currently, quite a bit of code still relies on the value of `type`, so think it makes sense to sanitize this. NOTE: Would have been ideal to reserve `0` value to undefined type, but at this point this is not possible anymore, so chose to use `-2` instead. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D13123
2021-11-08Nodes: store socket declaration reference in socketJacques Lucke
Previously, to get the declaration of a socket, one had to go through `node->declaration`. Now this indirection is not necessary anymore. This makes it easier to add more per-socket information into the declaration and accessing it in various places. Currently, this system is used by socket descriptions and node warnings for unsupported geometry component types.
2021-11-08Cleanup: avoid error prone struct declarations in C++Campbell Barton
Reference struct members by name instead relying on their order. This also simplifies moving back to named members when all compilers we use support them.
2021-11-08Cleanup: remove references to non-existent 'mtexpoly'Campbell Barton
2021-11-08Cleanup: remove duplicate doc-stringsCampbell Barton
Internal struct ObTfmBack had out of sync doc-strings for members duplicated from Object. Remove the doc-strings as there is this is just temporary storage.
2021-11-08Cleanup: spelling in commentsCampbell Barton
2021-11-07Cleanup: Clang tidyHans Goudey
2021-11-06Cleanup: Convert mesh.c to C++Erik
This commit renames mesh.c to mesh.cc and makes it compile in C++. Can be useful in the future to be able to use C++ functionality in existing and new functions. Differential Revision: https://developer.blender.org/D13134
2021-11-06Nodes: add preview image storage to node groupJacques Lucke
This is part of T92811. Differential Revision: https://developer.blender.org/D13105
2021-11-05Fix T92815: Incorrect handling of evaluated meshes from curvesHans Goudey
Evaluated meshes from curves are presented to render engines as separate instance objects now, just like evaluated meshes from other object types like point clouds and volumes. For that reason, cycles should not consider curve objects as geometry (previously it did, meaning it retrieved a second mesh from the curve object as well as the temporary evaluated mesh geometry). Further, avoid adding a curve object's evaluated mesh as data_eval, since that is special behavior for meshes that is arbitrary. Adding an evaluated mesh there but not an evalauted pointcloud is arbitrary, for example. Retrieve the evaluated mesh in from the geometry set in BKE_object_get_evaluated_mesh now, to support that change. This gets us closer to a place where all of an object's evaluated data is stored in geometry_set_eval, and we just have helper functions to access specific geometry components. Differential Revision: https://developer.blender.org/D13118
2021-11-05Fix T92815: Incorrect handling of evaluated meshes from curvesHans Goudey
Evaluated meshes from curves are presented to render engines as separate instance objects now, just like evaluated meshes from other object types like point clouds and volumes. For that reason, cycles should not consider curve objects as geometry (previously it did, meaning it retrieved a second mesh from the curve object as well as the temporary evaluated mesh geometry). Further, avoid adding a curve object's evaluated mesh as data_eval, since that is special behavior for meshes that is arbitrary. Adding an evaluated mesh there but not an evalauted pointcloud is arbitrary, for example. Retrieve the evaluated mesh in from the geometry set in BKE_object_get_evaluated_mesh now, to support that change. This gets us closer to a place where all of an object's evaluated data is stored in geometry_set_eval, and we just have helper functions to access specific geometry components. Differential Revision: https://developer.blender.org/D13118
2021-11-05Merge branch 'blender-v3.0-release'Hans Goudey
2021-11-05Fix part of T89313: Attribute search crash during animation playbackHans Goudey
During animation playback, data-blocks are reallocated, so storing pointers to the resulting data is not okay. Instead, the data should be retrieved from the context. This works when the applied search item is the "dummy" item added for non-matches. However, it still crashes for every other item, because the memory is owned by the modifier value log, which has been freed by the time the exec function runs. The next part of the solution is to allow uiSearchItems to own memory for the search items.
2021-11-05Merge branch 'blender-v3.0-release'Hans Goudey
2021-11-05Fix T92848: Crash when joining curves with spline domain attributesHans Goudey
The point domain attributes (stored on splines) are sorted so they have a consistent order on all splines after the join. However, spline domain attributes were included in the new order, which didn't work because the length of the attribute lists didn't match. The simple fix is to only include point domain attributes in the new order vector.
2021-11-05Merge branch 'blender-v3.0-release'Pablo Vazquez
2021-11-05Fix: Viewport stats wrong for Geometry Nodes instancesErik
In some cases when geometry is created in Geometry Nodes the viewport stats will show 0 because runtime data is not filled. This patch sets the runtime data on instances. Differential Revision: https://developer.blender.org/D12738
2021-11-05Merge branch 'blender-v3.0-release'Hans Goudey
2021-11-05Fix T92850: Curve to mesh incorrect for single point profilesHans Goudey
For single point splines that weren't at the origin, the results were incorrect. Now take into account the tilt, radius, etc. just like the general case.
2021-11-05Cleanup: spelling/typosCampbell Barton
2021-11-04Merge branch 'blender-v3.0-release'Germano Cavalcante