Fix T82452: Outliner: Cyclic "Original ID" panel in Data API.

I cannot think of any case where we'd want to show this pointer in UI
anyway, so just tag it with `PROP_HIDDEN`.
This commit is contained in:
Bastien Montagne 2020-11-26 10:46:35 +01:00
parent e09d0c0d07
commit 774d18804f
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #82452, Outliner: Cyclic "Original ID" panel in Data API
1 changed files with 1 additions and 0 deletions

View File

@ -1486,6 +1486,7 @@ static void rna_def_ID(BlenderRNA *brna)
"Actual data-block from .blend file (Main database) that generated that evaluated one");
RNA_def_property_pointer_funcs(prop, "rna_ID_original_get", NULL, NULL, NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE | PROP_PTR_NO_OWNERSHIP);
RNA_def_property_flag(prop, PROP_HIDDEN);
RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
prop = RNA_def_property(srna, "users", PROP_INT, PROP_UNSIGNED);