Blender Git Commits

Blender Git "master" branch commits.

Page: 111 / 5574

October 12, 2021, 12:45 (GMT)
Asset Catalogs: expose undo/redo operators to UI

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.
October 12, 2021, 12:42 (GMT)
Cleanup: asset catalogs, rename store_undo_snapshot to undo_push

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.
Revision 3a03d6c by Hans Goudey
October 12, 2021, 12:24 (GMT)
Fix: Incorrect error message in set spline resolution node

Caused by my own refactoring before committing the patch.
October 12, 2021, 10:42 (GMT)
Asset Catalogs: undo stack for catalog edits

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
October 12, 2021, 10:17 (GMT)
Assets: hide low-level catalog info behind "developer extra's"

Hide the catalog UUID and the catalog simple name from the Asset Browser
side-panel, unless "Developer Extra's" is enabled in the user prefs.
October 12, 2021, 09:55 (GMT)
Fix missing Cycles volume stack re-allocation

Need to check allocation size, as the features do not change with
volume stack depth detection.
October 12, 2021, 09:28 (GMT)
Asset Catalogs: recursive deletion of catalogs & children

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
October 12, 2021, 09:25 (GMT)
Tests: simplify asset catalog tree testing code

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.
October 12, 2021, 07:50 (GMT)
WindowManager: Keep track or the source library when appending.

Keep track of the source library allowing other parts of the code to
to make better decisions. This is needed to localize external files.

In this case the file paths are updated when `making local`.
But we should decide based on the source library if we want to
copy the file relative to the new blend file. See D12423.

Reviewed By: mont29, Severin

Differential Revision: https://developer.blender.org/D12765
October 12, 2021, 07:46 (GMT)
Fix incorrect commet in appdir.c about cache locations.
Revision e8dc02a by Peter Kim
October 12, 2021, 07:36 (GMT)
Fix build error due to conflicting types
Revision 9dda654 by Peter Kim
October 12, 2021, 07:18 (GMT)
XR Controller Support Step 4: Controller Drawing

Addresses T77127 (Controller Drawing).

Adds VR controller visualization and custom drawing via draw
handlers. Add-ons can draw to the XR surface (headset display) and
mirror window by adding a View3D draw handler of region type 'XR' and
draw type 'POST_VIEW'. Controller drawing and custom overlays can be
toggled individually as XR session options, which will be added in a
future update to the VR Scene Inspection add-on.

For the actual drawing, the OpenXR XR_MSFT_controller_model extension
is used to load a glTF model provided by the XR runtime. The model's
vertex data is then used to create a GPUBatch in the XR session
state. Finally, this batch is drawn via the XR surface draw handler
mentioned above.

For runtimes that do not support the controller model extension, a
a simple fallback shape (sphere) is drawn instead.

Reviewed By: Severin, fclem

Differential Revision: https://developer.blender.org/D10948
Revision cfa59b3 by Peter Kim
October 12, 2021, 07:13 (GMT)
Cleanup: remove unused parameter
October 12, 2021, 06:58 (GMT)
Tests: script_pyapi_idprop now cleans up after it's self

This test left blend files in the users temporary directory.
October 12, 2021, 06:58 (GMT)
Tests: remove noisy output from bl_pyapi_idprop_datablock

As part of expected behavior this printed an exception,
making it seem as if there was an error in the test.

Now the exception is suppressed from the output, ensuring it matches
an the expected output.
October 12, 2021, 06:57 (GMT)
Tests: support running ID-property test without numpy
October 12, 2021, 06:57 (GMT)
Tests: quiet warning for UIList class name
October 12, 2021, 06:55 (GMT)
Cleanup: spelling in comments
October 12, 2021, 06:55 (GMT)
Fix leak on exit when WITH_PYTHON_SAFETY is enabled

The lead only occurred when Python references were leaking as well.
October 12, 2021, 06:52 (GMT)
Cleanup: quiet undefined warning
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021