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-10-12Asset Catalogs: Refresh catalog simple name when assigning catalog IDSybren A. Stüvel
When assigning a new catalog ID to an asset, also refresh the "catalog simple name". This "simple name" is stored on the asset metadata next to the catalog UUID, to allow some emergency data recovery when the catalog definition file is somehow lost.
2021-10-12Fix warning about deleted default constructor declared as defaultJulian Eisel
Since `AssetCatalogPath` isn't default constructible (unlike the previous `CatalogPath`, alias `std::string`), `AssetCatalog` isn't default constructible either. But its default constructor is declared with `= default` which Apple Clang was warning about. Differential Revision: https://developer.blender.org/D12714 Reviewed by: Sybren Stüvel
2021-10-12Address warning about breaking copy elision of temporary objectJulian Eisel
Using `std::move()` on temporary objects prevents copy elision done by compilers. Apple Clang warns about this. Generally `std::move()` should be used sparingly: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
2021-10-12Asset Catalogs: expose undo/redo operators to UISybren A. Stüvel
Ensure that catalog operations create an undo snapshot, and show undo/redo operators in the asset browser. A hidden operator `ASSET_OT_catalog_undo_push` is also added such that add-ons can also set undo snapshots if they need.
2021-10-12Cleanup: asset catalogs, rename store_undo_snapshot to undo_pushSybren A. Stüvel
Rename `bke::AssetCatalogService::store_undo_snapshot` to `undo_push`. This makes the function named the same way as the global Blender "undo push" function. No functional changes.
2021-10-12Asset Catalogs: undo stack for catalog editsSybren A. Stüvel
Add an undo stack for catalog edits. This only implements the backend, no operators or UI yet. A bunch of `this->xxx` has been replaced by `catalog_collection_->xxx`. Things are getting a bit long, and the class is turning into a god object; refactoring the class is tracked in T92114. Reviewed By: Severin Maniphest Tasks: T92047 Differential Revision: https://developer.blender.org/D12825
2021-10-12Asset Catalogs: recursive deletion of catalogs & childrenSybren A. Stüvel
Recursively delete asset catalogs with `AssetCatalogService:prune_...` functions. This deletes the catalog and all of its children. The old `delete_catalog` function has been renamed to `delete_catalog_by_id()`, and is now a lower-level function (no deletion of children, no rebuilding of the tree). The `prune_catalogs_by_path()` and `prune_catalogs_by_id()` do delete children and do rebuild the catalog tree. Manifest task: T91634
2021-10-12Tests: simplify asset catalog tree testing codeSybren A. Stüvel
Simplify the testing code that verifies the asset catalog tree. It now prints clearer error messages when things go wrong, and it gets simpler data to test (instead of having to explicitly pass the parent count, it just counts the number of separators in the expected path). No functional changes to Blender.
2021-10-12Fix incorrect commet in appdir.c about cache locations.Jeroen Bakker
2021-10-12Cleanup: spelling in commentsCampbell Barton
2021-10-12Cleanup: quiet undefined warningCampbell Barton
2021-10-12GHOST: Add option to request (user) cache folder.Jeroen Bakker
Introduces `BKE_appdir_folder_caches` to get the folder that can be used to store caches. On different OS's different folders are used. - Linux: `~/.cache/blender/`. - MacOS: `Library/Caches/Blender/`. - Windows: `(%USERPROFILE%\AppData\Local)\Blender Foundation\Blender\Cache\`. Reviewed By: Severin Differential Revision: https://developer.blender.org/D12822
2021-10-12Geometry Nodes: Add Color input nodeCharlie Jolly
Adds a color input node with picker. Differential Revision: https://developer.blender.org/D12793
2021-10-11Fix T86671: Background Scene Dupliface Not Instanced.Bastien Montagne
Use depsgraph's objects iterator to find sources of dupliobjects, instead of looping over bases of a viewlayer.
2021-10-11Geometry Nodes: Add Nodes to Get/Set Built-in AttributesJohnny Matthews
This commit implements T91780, adding nodes to get and set builtin attributes. Individual set nodes are used so that the values can be exposed for direct editing, which is useful for attributes like shade smooth and spline resolution. Individual input nodes are used to allow reusing nodes for multiple components, and to allow grouping multiple outputs conceptually in the same node in the future. Input Nodes - Radius - Curve Tilt - Curve Handle Positions - Is Shade Smooth - Spline Resolution - Is Spline Cyclic 'Set' Nodes - Curve Radius - Point Radius - Curve Tilt - Curve Handle Positions - Is Shade Smooth - Spline Resolution - Is Spline Cyclic Using hardcoded categories is necessary to add separators to the node menu. Differential Revision: https://developer.blender.org/D12687
2021-10-11Cleanup: Asset Catalogs, add divider between sections in codeSybren A. Stüvel
No functional changes.
2021-10-11Cleanup: Asset Catalogs, add type alias for asset catalog mapsSybren A. Stüvel
Add alias for `Map<CatalogID, std::unique_ptr<AssetCatalog>>` to make the rest of the code a bit simpler. No functional changes.
2021-10-11Geometry Nodes: Separate and Delete Geometry for fieldsWannes Malfait
Delete Geometry: This adds a copy of the old node in the legacy folder and updates the node to work with fields. The invert option is removed, because it is something that should be very easy with fields, and to be consistent with other nodes which have a selection. There is also a dropdown to select the domain, because the domain can't be determined from the field input. When the domain does not belong on any of the components an info message is displayed. Separate Geometry: A more general version of the old Point Separate node. The "inverted" output is the same as using the delete geometry node. Differential Revision: https://developer.blender.org/D12574
2021-10-11Cleanup: Add const keyword to `BKE_packedfile_id_check`.Jeroen Bakker
2021-10-09Geometry Nodes: Align Euler to Vector NodeJarrett Johnson
This commit introduces the Align Euler to Vector function node which rotates to a body into a given direction. The node replaces the legacy "Align Rotation to Vector" node, which only worked on an attribute named `rotation` internally. The "Euler" in the name is meant to make it clearer that the rotation isn't interchangeable with a regular vector. Addresses T91374. Differential Revision: https://developer.blender.org/D12726
2021-10-08Fix T92046: Mesh to GPencil fails because materials are not createdAntonio Vazquez
This bug was introduced in D12190 because the list of types that support materials did not include GPencil and this caused all materials to be removed after they were created during conversion.
2021-10-08User Interface: Use theme alpha for the nodes frames backgroundDalai Felinto
This bump subversion.
2021-10-08Cleanup: asset catalogs, alphabetically order forward declarationsSybren A. Stüvel
No functional changes.
2021-10-08Cleanup: asset catalogs, move functions to their siblingsSybren A. Stüvel
Moved function definitions around so that all members of a class are next to each other. Previously some functions of one class were sitting between functions of another class. No functional changes.
2021-10-08Asset Catalogs: Fix unit test on WindowsSybren A. Stüvel
Force native slashes before comparing paths; on Windows mixing separators caused a unit test to fail. No functional changes.
2021-10-07Asset Catalogs: change rules for saving catalog definition filesSybren A. Stüvel
Change the rules for determining where to save a new catalog definition file (CDF). Old situation (T91681): if a `blender_assets.cats.txt` file already exists in the same directory as the blend file, write to that. If not, see if the blend file is contained in an asset library, and write to its top-level CDF. The new situation swaps the rules: first see if the blend file is contained in an asset library, and if so write to its top-level CDF. If not, write a CDF next to the blend file. As before, any pre-existing CDF is not just bluntly overwritten, but merged with the in-memory catalogs.
2021-10-07Cleanup: asset catalog tests, move teardown functionSybren A. Stüvel
Move `AssetCatalogTest::TearDown` close to the corresponding `SetUp` function, so that it's easier to find. No functional changes.
2021-10-07Fix proxy to override code being called on undos.Bastien Montagne
2021-10-06BMain: Add utils to check if a Main is empty or not.Bastien Montagne
Mostly intended for debug code (asserts).
2021-10-06Fix handling of overrides during append.Bastien Montagne
Liboverride references need a special handling during append, since those pointers should never be made local, nor reampped to newly localized data. And liboverride references should never be directly made local either, to ensure their liboverride usages remain pointing to linked data and not local one. Issue was reported by the studio, and also probably as part of T91892.
2021-10-06Cleanup: spelling in commentsCampbell Barton
2021-10-06Cleanup: clang-format, correct doxy groupsCampbell Barton
2021-10-06Cleanup: rename BKE_font.h -> BKE_vfont.hCampbell Barton
Match API naming prefix (BKE_vfont_*) and DNA_vfont_types.h.
2021-10-06Cleanup: remove unused flag argumentCampbell Barton
2021-10-06Cleanup: move BLI_vfontdata.h to BKE_vfontdata.hCampbell Barton
This didn't belong on blenlib since it uses DNA data types and included a bad-level call to BKE_curve.h. It also meant linking in blenlib would depend on the freetype library, noticeable for thumbnail extraction (see D6408).
2021-10-06Cleanup: spelling in commentsCampbell Barton
2021-10-05Cleanup: Remove unused DerivedMesh functionsHans Goudey
The long term goal is completely removing DerivedMesh, and these functions are making some refactoring of mesh normals (T91186) more complicated. They are not used anywhere.
2021-10-05Fix missing proper 'make local' call for liboverrides from outliner.Bastien Montagne
Also includes minor improvements to `BKE_lib_override_library_make_local` itself. This is a complement to rB37458798fa02c.
2021-10-05Fix T86379: When using "Append" not handling properly RigidBody constraintsBastien Montagne
This was simply never handled apparently. Also fixes a regression from recent append refactor that prevented RB objects to to properly handled too (since we instantiate loose objects in append step now, we need to handle RigidBody ones after that instantiation stage, otherwise nothing will happen since loose objects won't be in any scene).
2021-10-05Cleanup: use doxygen sectionsCampbell Barton
2021-10-05Cleanup: use 3D dot product (not 4D) when comparing pose-bone axesCampbell Barton
Also use more meaningful variable name.
2021-10-05Cleanup: quiet shadow warning, trailign spaceCampbell Barton
2021-10-04Cleanup: Use LISTBASE_FOREACH macroAntonio Vazquez
2021-10-04Cleanup: `Neighbour` -> `Neighbor`. and other minor UI messages fixes.Bastien Montagne
Blender English should use 'American' variants, not 'British' variants.
2021-10-04Cleanup: remove unused assignmentsCampbell Barton
2021-10-04Fix T91904: Assert when loading empty CurveProfileHans Goudey
Somehow, the file from T71329 has an empty curve profile. While that may be a problem in itself, it's reasonable to avoid asserts or crashes when loading or drawing such a CurveProfile. This commit just makes sure the table always has a single vertex, and adds some checks in drawing code.
2021-10-04Cleanup: Make more functions staticHans Goudey
This simplifies the surface of the API for a CurveProfile.
2021-10-04Cleanup: Replace macro with functionHans Goudey
2021-10-04Cleanup: Make function staticHans Goudey
2021-10-04Cleanup: Add doxygen sections, rearrange functionsHans Goudey