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-23Merge branch 'temp-ghost-vulkan-backend' into tmp-vulkanJeroen Bakker
2021-11-23Merge branch 'master' into temp-ghost-vulkan-backendJeroen Bakker
2021-11-23Merge remote-tracking branch 'origin/blender-v3.0-release'Sybren A. Stüvel
2021-11-23Cleanup: fix clang-tidy warningsSybren A. Stüvel
Fix clang-tidy warnings introduced by a recent commit on the release branch. No functional changes.
2021-11-23Merge remote-tracking branch 'origin/blender-v3.0-release'Sybren A. Stüvel
2021-11-23Asset Browser: add operator for installing asset bundlesSybren A. Stüvel
Add an operator "Copy to Asset Library" for installing asset bundles into already-existing asset libraries. The operator is shown when: - the "Current File" library is selected, - the blend file name matches `*_bundle.blend`, and - the file is not already located in an asset library. The user can select a target asset library, then gets a "Save As" dialogue box to select where in that library the file should be saved. This allows for renaming, saving in a subdirectory, etc. The Asset Catalogs from the asset bundle are merged into the target asset library. The operator will refuse to run when external files are referenced. This is not done in its poll function, as it's quite an extensive operator (it loops over all ID datablocks). Reviewed by: Severin Differential Revision: https://developer.blender.org/D13312
2021-11-23BKE LibLink/Append: Add mechanism for external code to loop over link/append ↵Bastien Montagne
context items. Will be required for python's `bpy.data.libraries.load()` refactor.
2021-11-23BKE link/append: Add optional blendfile handle to libraries.Bastien Montagne
This enables calling code to deal with the blendfile handle themselves, BKE_blendfile_link then just borrows, uses this handle and does not release it. Needed e.g. for python's libcontext system to use new BKE_blendfile_link_append code. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`.
2021-11-23Cleanup: remove unnecessary "extern"Jacques Lucke
2021-11-23Cleanup: add missing pragma onceJacques Lucke
2021-11-23BKE link/append: Add optional blendfile handle to libraries.Bastien Montagne
This enables calling code to deal with the blendfile handle themselves, BKE_blendfile_link then just borrows, uses this handle and does not release it. Needed e.g. for python's libcontext system to use new BKE_blendfile_link_append code. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`.
2021-11-23Merge branch 'blender-v3.0-release'Jacques Lucke
2021-11-23Fix T93092: incomplete animation rendering of multi-layer exr compositionJacques Lucke
This was broken by rB0c3b215e7d5456878b155d13440864f49ad1f230. The caching of loaded exr files needed some special treatment. Differential Revision: https://developer.blender.org/D13313
2021-11-23Fix T92654: missing padding in spreadsheet cellsJacques Lucke
This was probably broken by rB5c2330203e11e0d916960218b07d88d2193bf526. For now just add the padding back in a spreadsheet specific way. Differential Revision: https://developer.blender.org/D13315
2021-11-23Fix T93090: crash with data transfer modifier and geometry nodesJacques Lucke
There was a missing normals layer that was requested by the data transfer modifier from the target object. The normal layer was correctly added to the target object. However, it never reached the data transfer modifier because the mesh was copied in `BKE_object_get_evaluated_mesh` (in the call to `get_mesh_for_write`) and the copy does not include the normals layer. The solution is to not use `get_mesh_for_write` here which was only used because `BKE_object_get_evaluated_mesh` returns a non-const `Mesh *`. Mid term, it should actually return a `const Mesh *` to avoid the confusion. Differential Revision: https://developer.blender.org/D13319
2021-11-23Cleanup: silent clang-tidy warning NULL vs nullptr.Jeroen Bakker
2021-11-23VSE: Add drag and drop handler for preview areaPeter Fog
For some users, dropping assets into preview area may be more practical due to space constraints or it may be just more intuitive. Reviewed By: ISS Differential Revision: https://developer.blender.org/D13311
2021-11-23VSE: Support drag and drop for datablocksPeter Fog
For using the Outliner and/or the Asset Browser as scene independent tools to organize a/v source material is necessary for the users to be able to drag and drop data blocks into the VSE. This was also an unfulfilled design target for the Outliner Gsoc project. Datablocks won't be used directly. Path to file will be passed to strip add operator instead. Reviewed By: ISS Differential Revision: https://developer.blender.org/D13304
2021-11-23Fix: Const warning in editmesh_knife.cErik
Fixes a warning caused by freeing a const pointer. This commit removes the const modifier. Differential Revision: https://developer.blender.org/D13321
2021-11-22Merge branch 'blender-v3.0-release'Julian Eisel
2021-11-22Assets: Generate light preview when making light object an assetJulian Eisel
We already supported previews for lights, just didn't actually use them when making a light object an asset. They were only used when making the light data itself an asset.
2021-11-22Fix grayed out preview generation button for light objectsJulian Eisel
Mistake in e7bea3fb6ed0. We should only skip preview generation for objects that don't support preview rendering, not completely forbid accessing preview data of such IDs.
2021-11-22Geometry Nodes: Rename legacy node filesHans Goudey
This will be useful to solve some issues with unity builds, which compiles different files together to improve build times.
2021-11-22CurveEval: Add total_length() and total_control_point_size() methodsJohnny Matthews
Add the following methods to the CurveEval class: total_length() : returns the total length of the curve without needing to allocate a new array total_control_point_size() : returns the total number of control points without needing to allocate a new array
2021-11-22UI: Use a map for block name lookupsErik
Use a map to speed up search for UI block names. Time to redraw the node editor was decreased from around 75-120ms to 40-70ms in a tree with many Geometry Nodes. Differential Revision: https://developer.blender.org/D13225
2021-11-22Fix T84493 issue with selection after boolean.Howard Trickey
According to Blender selection rules, selections should be flushed to containing elements. Added an EDMB_select_flush() after edit mode booleans or intersects are done. Hopefully this doesn't break any scripts that might have been depending on the old (broken) behavior.
2021-11-22BKE Link/Append: Use BLO's LibraryLink_Params.Bastien Montagne
This allows to reduce signature of several functions, and make it eaiser to integrate more higher-level usages later on. This should be a non-behavioral-change commit. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`.
2021-11-22Link/Append: Move main linking code (from WM) to use new instantiation code ↵Bastien Montagne
in BKE. This removes the last main usage of BLO's instantiation code. Also required some limited refactoring of BKE_blendfile_link_append's instantiation to make it more modular, and usable by both linking and appending code paths. NOTE: This should be a non-behavioral change commit. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`.
2021-11-22Link/Append: Move most of core link/append code from WM to new ↵Bastien Montagne
`BKE_blendflie_link_append` module. This will allow to expose all those advanced features of the WM operators to other parts of the code, like the python library context manager, copy/paste code, etc. This is expected to be a strictly no-behavioral-change commit. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`. Maniphest Tasks: T91414 Differential Revision: https://developer.blender.org/D13222
2021-11-22Moviecache: Fix potential memory corruption.Jeroen Bakker
`IMB_moviecache` is implemented as a singleton. When destructing the singleton via `IMB_moviecache_destruct` it will not be created anymore resulting inusage of unallocated memory and potentional memory corruption. When running blender this doesn't happen, but when creating images in test cases the moviecache should be able to be recreated after it is destroyed. Reviewed By: sergey Differential Revision: https://developer.blender.org/D13287
2021-11-22Painting: Performance curve masks.Jeroen Bakker
This patch separates the static-part from the dynamic-part when generate brush masks. This makes the generation of brush masks 2-5 times faster depending on the size of the brush. More improvements can be done, this was just low hanging fruit.
2021-11-22Merge branch 'blender-v3.0-release'Hans Goudey
2021-11-22Fix T92631: Fix negative thickness regression in complex solidifyHenrik Dick
This regression was introduced by D11832, but there was problems before that as well. I seem to have missed it in review. See the differential revision for a screenshot of the difference. Differential Revision: https://developer.blender.org/D13216
2021-11-22Fix T93250: Crash in spreadsheet tree view after recent commitHans Goudey
It seems that update_from_old assumed there would be an old tree view available in the old block. This works for the asset browser because the tree is always drawn, but for the spreadsheet that depends on having an active object, which isn't necessarily always true. Differential Revision: https://developer.blender.org/D13301
2021-11-22Merge branch 'blender-v3.0-release'Philipp Oeser
2021-11-22Fix T93198: Frame Selected in greasepencil curve editing does not workPhilipp Oeser
Was not taking into account curve points at all. Maniphest Tasks: T93198 Differential Revision: https://developer.blender.org/D13281
2021-11-22Cleanup: Removed unused code in curve mask creation.Jeroen Bakker
Generating curve mask for 2d texture painting had some hard-coded parameters that eventually weren't used in the algorithm (hardness and rotation of the brush). This patch removes these parameters.
2021-11-22Painting: migrated curve mask generation to CPP.Jeroen Bakker
Curve mask generation is done during 2d texture painting. There are some performance issues in this part of the code. Before addressing those we move the code to CPP.
2021-11-22Cleanup: Make parameter const (BKE_brush_curve_strength_clamped).Jeroen Bakker
2021-11-22Revert "Fix (unreported) broken handling of constraints reordering with ↵Bastien Montagne
liboverride." This reverts commit 6eaa69c66c98d291b80331330391664415f759a4. Committed by nistake, sorry for the noise.
2021-11-22Cleanup: use simple data member instead of callbackJacques Lucke
This really doesn't have to be a callback currently, since it is always the same `CPPType` for a socket type.
2021-11-22Cleanup: make naming more consistentJacques Lucke
2021-11-22Merge branch 'blender-v3.0-release'Bastien Montagne
2021-11-22Fix broken NLA RNA code after own rBfa6a913ef19c.Bastien Montagne
Thanks to @scurest for noticing this mistake!
2021-11-22Fix (unreported) broken handling of constraints reordering with liboverride.Bastien Montagne
New drag&drop reordering code would call constraints reordering operator with the generic context, and not the one from the panel's layout. missing the "constraint" member which is mandatory for poll function to properly deal with override vs. local constraints. This commit fixes it by generating a temp bContextStore in the panel re-ordering callback. NOTE: this fix will have to be extended to modifiers (which happen to work currently because they have an 'active' status), and gpencil modifiers (which are also broken currently). Differential Revision: https://developer.blender.org/D13291
2021-11-21Fix T93256: Instances to points node broken after recent commitHans Goudey
When 97533eede444217 added the instance domain, it didn't change the domain that instance attributes are read from in this node.
2021-11-21Functions: remove test for dynamic nameJacques Lucke
This was broken in rB6ee2abde82ef121cd6e927995053ac33afdbb438.
2021-11-21Functions: fix compile error in testsJacques Lucke
2021-11-21Functions: use static string for parameter namesJacques Lucke
The idea behind this change is the same as in rB6ee2abde82ef121cd6e927995053ac33afdbb438. A `MultiFunction::debug_parameter_name` method could be added separately when necessary.
2021-11-21Functions: use static names for multi-functionsJacques Lucke
Previously, the function names were stored in `std::string` and were often created dynamically (especially when the function just output a constant). This resulted in a lot of overhead. Now the function name is just a `const char *` that should be statically allocated. This is good enough for the majority of cases. If a multi-function needs a more dynamic name, it can override the `MultiFunction::debug_name` method. In my test file with >400,000 simple math nodes, the execution time improves from 3s to 1s.