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: Use new CollectionRef::empty() methodJesse Yurkovich
Use the new CollectionRef::empty() method in all locations where appropriate. Differential Revision: https://developer.blender.org/D13276
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-23Merge branch 'blender-v3.0-release'Brecht Van Lommel
2021-11-23Fix T93244: Cycles HIP not working with multi GPU renderingSayak Biswas
Use the correct device function (hipDeviceGet) for multi GPU setups, instead of hipGetDevice which just returns the default device. Differential Revision: https://developer.blender.org/D13323
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-22Merge branch 'blender-v3.0-release'Brecht Van Lommel
2021-11-22Fix T93283: Cycles render error with CUDA CPU + GPU after recent optimizationBrecht Van Lommel
BVH2 triangle intersection was broken on the GPU since packed floats can't be loaded directly into SSE. The better long term solution for performance would be to build a BVH2 for GPU and Embree for CPU, similar to what we do for OptiX.
2021-11-22Fix part of T93278: transparent glass option not working with environment passBrecht Van Lommel
2021-11-22IME: Fix Multi-Window Duplicated First CharacterTakahiro Shizuki
Fix problem with duplicated initial character when initiating or switching to new windows. This is done by updating our copies of state and modes from the new window when it receives WM_IME_SETCONTEXT message. This problem and fix are only for the Windows platform.
2021-11-22Fix confusing new Cycles UI terminologyBrecht Van Lommel
* Rename "Auto Tiles" to "Use Tiling", it's not really automatic and confusing with the old auto tile size add-on. * Rename "Adaptive" scrambling distance to "Automatic", to avoid confusion with adaptive sampling.
2021-11-22IME: Fix Multi-Window Duplicated First CharacterTakahiro Shizuki
Fix problem with duplicated initial character when initiating or switching to new windows. This is done by updating our copies of state and modes from the new window when it receives WM_IME_SETCONTEXT message. This problem and fix are only for the Windows platform.
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-22Fix confusing new Cycles UI terminologyBrecht Van Lommel
* Rename "Auto Tiles" to "Use Tiling", it's not really automatic and confusing with the old auto tile size add-on. * Rename "Adaptive" scrambling distance to "Automatic", to avoid confusion with adaptive sampling.
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-22Merge branch 'blender-v3.0-release'Sergey Sharybin
2021-11-22Fix T90308: Cycles crash copying memory from device to hostSergey Sharybin
Happens when device runs out of memory and Cycles is moving some textures to the host memory. The delayed memory free for OptiX BVH was moving data from one device_memory to another, leaving the original device memory in an invalid state. This was ruining the allocation map in the CUDA device which is using pointer to the device_memory. This change makes it so the memory pointer is stolen from BVH into the delayed memory free list. Additionally, forbid copying and moving instances of device_memory and added sanity checks in the device implementation. Differential Revision: https://developer.blender.org/D13316
2021-11-22Cleanup: Clang-format of the HIP device implementationSergey Sharybin
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-22Merge remote-tracking branch 'origin/blender-v3.0-release'Dalai Felinto
2021-11-22Material Preview: Fix Sphere object (squared UV and poles)Dalai Felinto
A good sphere preview material has a 1:1 UV ratio (so we see squares as least distorted as possible), as well as good poles. Square UV: The original sphere expected a 2:1 panorama to be mapped to it. This patch changes that (I scaled Y by 0.5) so that square textures look ok. Poles: The original sphere had a low initial resolution, so no ammount of subdivision would fix the poles. The sphere has a subdivision modifier with 0 resolution. Later (3.1?) I want to try to change the resolution on-the-fly based on whether the material has a displacement map. Old sphere (1.9K vertices): {F11845752, size=500px} New sphere (2.0K vertices): {F11845710, size=500px} Differential Revision: https://developer.blender.org/D13309
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