From 774d18804fe3de51c601f3f0684218cd6af1db09 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 26 Nov 2020 10:46:35 +0100 Subject: 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`. --- source/blender/makesrna/intern/rna_ID.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesrna/intern/rna_ID.c') diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 452c6754d10..1ff06470053 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -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); -- cgit v1.2.3