July 15, 2021, 14:12 (GMT) |
UI/Assets: Initial Asset View UI template The asset view UI template is a mini-version of the Asset Browser that can be placed in regular layouts, regions or popups. At this point it's made specifically for placement in vertical layouts, it can be made more flexible in the future. Generally the way this is implemented will likely change a lot still as the asset system evolves. The Pose Library add-on will use the asset view to display pose libraries in the 3D View sidebar. References: * https://developer.blender.org/T86139 * https://code.blender.org/2021/06/asset-browser-project-update/#what-are-we-building * https://code.blender.org/2021/05/pose-library-v2-0/#use-from-3d-viewport Notes: * Important limitation: Due to the early & WIP implementation of the asset list, all asset views showing the same library will show the same assets. That is despite the ID type filter option the template provides. The first asset view created will determine what's visible. Of course this should be made to work eventually. * The template supports passing an activate and a drag operator name. The former is called when an asset is clicked on (e.g. to apply the asset) the latter when dragging (e.g. to .blend a pose asset). If no drag operator is set, regular asset drag & drop will be executed. * The template returns the properties for both operators (see example below). * The argument list for using the template is quite long, but we can't avoid that currently. The UI list design requires that we pass a number of RNA or custom properties to work with, that for the Pose Libraries should be registered at the Pose Library add-on level, not in core Blender. * Idea is that Python scripts or add-ons that want to use the asset view can register custom properties, to hold data like the list of assets, and the active asset index. Maybe that will change in future and we can manage these internally. As an example, the pose library add-on uses it like this: ``` activate_op_props, drag_op_props = layout.template_asset_view( "pose_assets", workspace, "active_asset_library", wm, "pose_assets", workspace, "active_pose_asset_index", filter_id_types={"filter_action"}, activate_operator="poselib.apply_pose_asset", drag_operator="poselib.blend_pose_asset", ) drag_op_props.release_confirm = True drag_op_props.flipped = wm.poselib_flipped activate_op_props.flipped = wm.poselib_flipped ``` |
Revision f52e3aa by Sybren A. Stüvel July 15, 2021, 14:12 (GMT) |
Asset Browser: Python mixin utility for category-specific panels Using this mixin for a panel definition, it's possible to set in which categories the panel should appear. This is used by the Pose Library add-on. |
July 15, 2021, 14:09 (GMT) |
Fix T88188: Allow keyframing vertex mass in cloth sim Update vertex weights between simulation steps if they have changed. This allows for animated vertex weights in the cloth sim. Reviewed By: Sebastian Parborg Differential Revision: https://developer.blender.org/D11640 |
Revision 60fee69 by Sybren A. Stüvel July 15, 2021, 14:04 (GMT) |
Library loading: Fix access of out-of-scope memory in py context manager The `__enter__` function of the `bpy.data.libraries.load` context manager was storing a pointer to a stack-allocated variable, which was subsequently used in the `__exit__` function, causing a crash. This is now fixed. Thanks @Severin for the patch. |
Revision 3df40cc by Paul Golter / Sebastian Parborg July 15, 2021, 13:49 (GMT) |
Fix: Subtitles: Order of channels in the .blend file will be kept in the .rst file. If text strips have the same start frame but are stacked on top of each other in different channels the order in which they are written in the .rst file was random before. Reviewed By: Richard Antalik Differential Revision: https://developer.blender.org/D11903 |
July 15, 2021, 12:22 (GMT) |
Add support for RISC-V architecture * On RISC-V GCC 10.3 does not define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n. * Avoid a build error "Please add support for your platform in build_config.h" Cf: https://github.com/sergeyvfx/libNumaAPI/pull/3 Differential Revision: https://developer.blender.org/D11910 |
Revision 709e443 by Bastien Montagne July 15, 2021, 12:06 (GMT) |
Cleanup: LayerCollection resync: Proper `r_` prefix for return function parameter. |
Revision ddc7e5f by Campbell Barton July 15, 2021, 11:09 (GMT) |
Cleanup: improve comments, remove debug printf |
Revision e509f9c by Campbell Barton July 15, 2021, 10:58 (GMT) |
Keymap: use Shift-Tab to toggle snap in the sequencer Match the same shortcut for the 3D view & UV editor. |
Revision e7e5fd9 by Bastien Montagne July 15, 2021, 10:49 (GMT) |
Cleanup: LayerCollection resync code. Mainly naming (also droping the `layer_collection` in favor of just `layer` for internal code, this is clear enough and much shorter). Add proper parent/child identifiers, `r_` prefix for parameters also used as return values, etc. Also made some parameters const. |
Revision 2e8641e by Jacques Lucke July 15, 2021, 10:43 (GMT) |
Fix: crash when creating new node links This was a regression in rBc27ef1e9e8e663e02173e518c1e669e9845b3d1f. |
Revision ae30f72 by Dalai Felinto July 15, 2021, 10:23 (GMT) |
Fix T89870: Vertex groups lost when opening 3.0 files in 2.93 The original refactor for vertex groups (3b6ee8cee708) forgot to bump the minimum file requirement. I'm also bumping the subversion to 12 so everyone can switch to a working subversion number. Differential Revision: https://developer.blender.org/D11931 |
Revision 49b798c by Ankit Meel July 15, 2021, 09:53 (GMT) |
macOS/glog: Silence syscall deprecation warning Upstream will release the fix in 0.6 which will take time. Silence two warnings. Differential Revision: https://developer.blender.org/D11246 |
Revision 757ec00 by Campbell Barton July 15, 2021, 09:13 (GMT) |
Revert "Keymap: use D-Key for view-pie menu" This reverts commit f92f5d1ac62c66ceb7a6ac1ff69084fbd5e3614a. See: T89757 for rationale for reverting this change. |
Revision c614ead by Campbell Barton July 15, 2021, 09:13 (GMT) |
Keymap: use Alt-Q instead of D for transfer mode operator This now works in all modes (not just sculpt) and activates on press instead of release. See design task T89757. |
Revision de91351 by Jacques Lucke July 15, 2021, 09:07 (GMT) |
Revision c27ef1e by Jacques Lucke July 15, 2021, 09:00 (GMT) |
Geometry Nodes: dim links whose start and end sockets are not visible This makes node trees with long links that cross other nodes easier to work with. Dimmed links will be ignored by various modal operators like cut and reroute insertion. Differential Revision: https://developer.blender.org/D11813 |
Revision d5e626b by Campbell Barton July 15, 2021, 08:29 (GMT) |
Cleanup: use raw strings, quiet clang-tidy warnings |
Revision 8e8a6b8 by Campbell Barton July 15, 2021, 08:29 (GMT) |
Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text") This shows the text as part of the assertion message. |
Revision a63a0ee by Campbell Barton July 15, 2021, 08:14 (GMT) |
Cleanup: clang-format |
|