Fix: Grease Pencil: Add channel_color RNA prop to layer groups
Property wasn't added to earlier because it was part of tree-node.
But it was moved to tree-node just in main, see: 3ef2ee7c53
Failing right now in 4.4.
Pull Request: https://projects.blender.org/blender/blender/pulls/135225
This commit is contained in:
committed by
Pratik Borhade
parent
09fd1d48e2
commit
9d12ac29ea
@@ -1239,6 +1239,11 @@ static void rna_def_grease_pencil_layer_group(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "color_tag", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_funcs(prop, "rna_group_color_tag_get", "rna_group_color_tag_set", nullptr);
|
||||
RNA_def_property_enum_items(prop, enum_layergroup_color_items);
|
||||
|
||||
prop = RNA_def_property(srna, "channel_color", PROP_FLOAT, PROP_COLOR);
|
||||
RNA_def_property_float_sdna(prop, "GreasePencilLayerTreeNode", "color");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_update(prop, NC_GPENCIL | NA_EDITED, nullptr);
|
||||
}
|
||||
|
||||
static void rna_def_grease_pencil_layer_groups(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
|
||||
Reference in New Issue
Block a user