Blender Git Commits

Blender Git "master" branch commits.

Page: 117 / 5574

October 7, 2021, 01:04 (GMT)
Cleanup: Move VSE disk cache code into own file

No functional changes.
October 6, 2021, 22:38 (GMT)
Cleanup: VSE iterator semantics

Use `BLI_gset_ensure_p_ex()` instead of `BLI_gset_insert()` after
checking `BLI_gset_lookup()`.
October 6, 2021, 22:10 (GMT)
Fix T91972: Meta changes length when adding strip

`SequencesMeta.new_movie()` API function caused meta strip to change
length. Similar issue has been fixed in transform code by checking
if `MetaStack` exists. `MetaStack` is not used when changing data in
python.

Provide `seqbase` to `SEQ_time_update_sequence()` so the function can
check if change happens inside of meta strip.

This patch also merges `seq_time_update_sequence_bounds()` into
`SEQ_time_update_sequence()`. This is because same issue applies for
both functions and it is confusing to have more time update
functions.re if this will lead anywhere.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D12763
October 6, 2021, 22:04 (GMT)
Fix VSE pan property text printing

Move text into separate label.
October 6, 2021, 15:52 (GMT)
Cycles: fully decouple triangle and curve primitive storage from BVH2

Previously the storage here was optimized to avoid indirections in BVH2
traversal. This helps improve performance a bit, but makes performance
and memory usage of Embree and OptiX BVHs a bit worse also. It also adds
code complexity in other parts of the code.

Now decouple triangle and curve primitive storage from BVH2.
* Reduced peak memory usage on all devices
* Bit better performance for OptiX and Embree
* Bit worse performance for CUDA
* Simplified code:
** Intersection.prim/object now matches ShaderData.prim/object
** No more offset manipulation for mesh displacement before a BVH is built
** Remove primitive packing code and flags for Embree and OptiX
** Curve segments are now stored in a KernelCurve struct
* Also happens to fix a bug in baking with incorrect prim/object

Fixes T91968, T91770, T91902

Differential Revision: https://developer.blender.org/D12766
October 6, 2021, 15:44 (GMT)
Build: search for hipcc in HIP_ROOT_DIR/bin
Revision 8a6f224 by Julian Eisel
October 6, 2021, 14:55 (GMT)
Fix logic error when trying to find hovered item

Was just comparing this item's and the parent item's names. But if an item has
no parents, only its own name has to match for the check to return true. Make
sure that the number of parents also matches.
October 6, 2021, 14:53 (GMT)
BMain: Add utils to check if a Main is empty or not.

Mostly intended for debug code (asserts).
October 6, 2021, 14:53 (GMT)
Fix T91987: Linking overrides does not apply overrides rules.

Just a matter of calling `BKE_lib_override_library_main_update` in
`library_link_end`.
October 6, 2021, 14:51 (GMT)
Fix compilation error with MSVC

MSVC does not support variable size array definition.
Use maximum possible stack, similar to the GPU case.

Not expected to have user-measurable difference.
Revision 2012d54 by Julian Eisel
October 6, 2021, 14:36 (GMT)
Asset Browser: Always show icon to add catalog next to "All" item

Feedback was that it's unclear sometimes how to add a new item and that some
people expect a button to add a new item next to the "All" item.
Revision 536109b by Julian Eisel
October 6, 2021, 14:36 (GMT)
Fix possibly wrong matching of tree-view item buttons

The UI code to ensure consistent button state over redraws was just comparing
the name of the item, ignoring the parent names. So with multiple items of the
same name, there might have been glitches (didn't see any myself though).

There's a leftover to-do though, we don't check yet if the matched buttons are
actually from the same tree. Added TODO comment.
Revision 75fbf6f by Julian Eisel
October 6, 2021, 14:36 (GMT)
Asset Browser: Show catalog add & delete icons on mouse hover (only)

Now the icons to add or delete catalogs are only shown when mouse hovering a
catalog item in the tree. This is convenient for quick creation of catalogs,
and doesn't require activating a catalog to edit it first.

Determining if a tree item is hovered isn't trivial actually. The UI tree-view
code has to find the matching tree-row button in the previous layout to do so,
since the new layout isn't calculated yet.
October 6, 2021, 14:26 (GMT)
Pass correct array size to BKE_object_material_remap_calc

This was patch D12460 from jlewallen and fixes T91339 and T90818.
October 6, 2021, 13:46 (GMT)
Fix T91922: Cycles artifacts with high volume nested level

Make volume stack allocated conditionally, potentially based on the
actual nested level of objects in the scene.

Currently the nested level is estimated by number of volume objects.
This is a non-expensive check which is probably enough in practice
to get almost perfect memory usage and performance.

The conditional allocation is a bit tricky.

For the CPU we declare and define maximum possible volume stack,
because there are only that many integrator states on the CPU.

On the GPU we declare outer SoA to have all volume stack elements,
but only allocate actually needed ones. The actually used volume
stack size is passed as a pre-processor, which seems to be easiest
and fastest for the GPU state copy.

There seems to be no speed regression in the demo files on RTX6000.

Note that scenes with high nested level of volume will now be slower
but correct.

Differential Revision: https://developer.blender.org/D12759
October 6, 2021, 13:08 (GMT)
Gizmo: remove wmGizmoGroup.use_fallback_keymap

This ended up being a copy of:
`toolsettings->workspace_tool_type == SCE_WORKSPACE_TOOL_FALLBACK`
requiring boiler plate assignment in gizmos refresh callbacks.

Remove this struct member and check `toolsettings->workspace_tool_type`
directly, since so far there has been no advantage in gizmo-groups
being able to control this themselves.
October 6, 2021, 13:06 (GMT)
Keymap: ignore the fallback keymap when "Active Tool" is set

Resolve regression in c9d9bfa84ad5cb985e3feccffa702b2f3cc2adf8,
which added support for tools to be tagged as using a fallback too.

In these cases the "Active Tool" setting was ignored and the fallback
tool would be used (the spin tool would box select for example).
Revision 539575b by Julian Eisel
October 6, 2021, 12:25 (GMT)
Assets: Support Renaming Catalogs in the UI

Catalogs can now be renamed by double clicking them in the Asset
Browser. This is mostly done through the tree-view API, the asset
specific code is very little.

There is some polish left to be done here, e.g. the double click
currently also collapses/uncollapses and activates the clicked item. And
the rename button takes the full width of the row. But addressing these
is better done as part of some other behavioral changes that are planned
anyway.
October 6, 2021, 12:21 (GMT)
Build: add ccache support for CUDA kernels on Linux
October 6, 2021, 12:21 (GMT)
Tests: include device type in benchmark graph labels
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021