Geometry Nodes: Experimental option for Volumes

Adds an experimental option under "New Features" in preferences,
which enables visibility of the new Volume Nodes.
Right now this option does nothing but will be used during development.
See #103248

Pull Request #104552
This commit is contained in:
Erik Abrahamsson 2023-02-10 05:50:17 +01:00 committed by Gitea
parent 88f9c55f7f
commit bad2c3b9ef
3 changed files with 9 additions and 1 deletions

@ -2329,6 +2329,9 @@ class USERPREF_PT_experimental_new_features(ExperimentalPanel, Panel):
({"property": "use_override_templates"},
("blender/blender/issues/73318",
"Milestone 4")),
({"property": "use_new_volume_nodes"},
("blender/blender/issues/103248",
"#103248")),
),
)

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

@ -6456,6 +6456,10 @@ static void rna_def_userdef_experimental(BlenderRNA *brna)
"All Linked Data Direct",
"Forces all linked data to be considered as directly linked. Workaround for current "
"issues/limitations in BAT (Blender studio pipeline tool)");
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");
}
static void rna_def_userdef_addon_collection(BlenderRNA *brna, PropertyRNA *cprop)