LibOverride: Make nodetree of material overrideable again.

This reverts rB6899dbef77cd and makes the pointer explicitely
processable by override & diffing code.

Previous changes & fixes have fixed the 'driver-workaround' case afaict.

Note that this only enables proper generic handling of overrides and
their ID pointers, no node property is actually overridable currently.
This commit is contained in:
Bastien Montagne
2021-08-18 16:46:12 +02:00
parent 1d06d35034
commit fffe219bdb

View File

@@ -850,7 +850,7 @@ void RNA_def_material(BlenderRNA *brna)
RNA_def_property_pointer_sdna(prop, NULL, "nodetree");
RNA_def_property_clear_flag(prop, PROP_PTR_NO_OWNERSHIP);
/* XXX: remove once overrides in material node trees are supported. */
RNA_def_property_override_flag(prop, PROPOVERRIDE_IGNORE);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_ui_text(prop, "Node Tree", "Node tree for node based materials");
prop = RNA_def_property(srna, "use_nodes", PROP_BOOLEAN, PROP_NONE);