LibOverride: Fix improper tagging of more of the backward pointers in RNA nodetrees.
This commit is contained in:
parent
582a0b7e5a
commit
9c25731781
|
@ -9318,6 +9318,8 @@ static void rna_def_node(BlenderRNA *brna)
|
|||
RNA_def_property_pointer_sdna(prop, NULL, "parent");
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Node_parent_set", NULL, "rna_Node_parent_poll");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_struct_type(prop, "Node");
|
||||
RNA_def_property_ui_text(prop, "Parent", "Parent this node is attached to");
|
||||
|
||||
|
@ -9532,29 +9534,39 @@ static void rna_def_node_link(BlenderRNA *brna)
|
|||
RNA_def_property_pointer_sdna(prop, NULL, "fromnode");
|
||||
RNA_def_property_struct_type(prop, "Node");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_ui_text(prop, "From node", "");
|
||||
|
||||
prop = RNA_def_property(srna, "to_node", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "tonode");
|
||||
RNA_def_property_struct_type(prop, "Node");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_ui_text(prop, "To node", "");
|
||||
|
||||
prop = RNA_def_property(srna, "from_socket", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "fromsock");
|
||||
RNA_def_property_struct_type(prop, "NodeSocket");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_ui_text(prop, "From socket", "");
|
||||
|
||||
prop = RNA_def_property(srna, "to_socket", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "tosock");
|
||||
RNA_def_property_struct_type(prop, "NodeSocket");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_ui_text(prop, "To socket", "");
|
||||
|
||||
prop = RNA_def_property(srna, "is_hidden", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_funcs(prop, "rna_NodeLink_is_hidden_get", NULL);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
|
||||
RNA_def_property_ui_text(prop, "Is Hidden", "Link is hidden due to invisible sockets");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue