Cleanup: Description for deprecated use_nodes

Pull Request: https://projects.blender.org/blender/blender/pulls/146721
This commit is contained in:
Habib Gahbiche
2025-09-24 18:41:50 +02:00
parent 790527b149
commit 2e8d5a238e
2 changed files with 10 additions and 2 deletions

View File

@@ -1110,7 +1110,11 @@ void RNA_def_material(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_ui_text(prop, "Use Nodes", "Use shader nodes to render the material");
RNA_def_property_boolean_funcs(prop, "rna_Material_use_nodes_get", "rna_Material_use_nodes_set");
RNA_def_property_deprecated(prop, "Unused", 500, 600);
RNA_def_property_deprecated(prop,
"Unused but kept for compatibility reasons. Setting the property "
"has no effect, and getting it always returns True.",
500,
600);
/* common */
rna_def_animdata_common(srna);

View File

@@ -262,7 +262,11 @@ void RNA_def_world(BlenderRNA *brna)
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
RNA_def_property_ui_text(prop, "Use Nodes", "Use shader nodes to render the world");
RNA_def_property_boolean_funcs(prop, "rna_World_use_nodes_get", "rna_World_use_nodes_set");
RNA_def_property_deprecated(prop, "Unused", 500, 600);
RNA_def_property_deprecated(prop,
"Unused but kept for compatibility reasons. Setting the property "
"has no effect, and getting it always returns True.",
500,
600);
/* Lightgroup Membership */
prop = RNA_def_property(srna, "lightgroup", PROP_STRING, PROP_NONE);