UI: Asset Shelf (Experimental Feature) #104831

Closed
Julian Eisel wants to merge 399 commits from asset-shelf into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
4 changed files with 14 additions and 1 deletions
Showing only changes of commit b94de0f35e - Show all commits

View File

@ -2375,6 +2375,7 @@ class USERPREF_PT_experimental_new_features(ExperimentalPanel, Panel):
({"property": "use_sculpt_tools_tilt"}, ("blender/blender/issues/82877", "#82877")),
({"property": "use_extended_asset_browser"},
("blender/blender/projects/10", "Pipeline, Assets & IO Project Page")),
({"property": "use_asset_shelf"}, ("blender/blender/issues/102879", "#102879")),
({"property": "use_override_templates"}, ("blender/blender/issues/73318", "Milestone 4")),
({"property": "use_new_volume_nodes"}, ("blender/blender/issues/103248", "#103248")),
),

View File

@ -51,6 +51,10 @@ void send_redraw_notifier(const bContext &C)
static bool asset_shelf_poll(const bContext *C, const SpaceLink *space_link)
{
if (!U.experimental.use_asset_shelf) {
return false;
}
const SpaceType *space_type = BKE_spacetype_from_id(space_link->spacetype);
/* Is there any asset shelf type registered that returns true for it's poll? */

View File

@ -684,7 +684,8 @@ typedef struct UserDef_Experimental {
char use_sculpt_texture_paint;
char enable_workbench_next;
char use_new_volume_nodes;
char _pad[6];
char use_asset_shelf;
char _pad[5];
/** `makesdna` does not allow empty structs. */
} UserDef_Experimental;

View File

@ -6693,6 +6693,13 @@ static void rna_def_userdef_experimental(BlenderRNA *brna)
prop = RNA_def_property(srna, "use_new_volume_nodes", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_ui_text(
prop, "New Volume Nodes", "Enables visibility of the new Volume nodes in the UI");
prop = RNA_def_property(srna, "use_asset_shelf", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_ui_text(prop,
"Asset Shelf",
"Enables the asset shelf regions in the 3D view. Used by the Pose "
"Library add-on in Pose Mode only");
RNA_def_property_update(prop, 0, "rna_userdef_ui_update");
}
static void rna_def_userdef_addon_collection(BlenderRNA *brna, PropertyRNA *cprop)