[Bf-blender-cvs] [774d18804fe] master: Fix T82452: Outliner: Cyclic "Original ID" panel in Data API.

Bastien Montagne noreply at git.blender.org
Thu Nov 26 10:47:54 CET 2020


Commit: 774d18804fe3de51c601f3f0684218cd6af1db09
Author: Bastien Montagne
Date:   Thu Nov 26 10:46:35 2020 +0100
Branches: master
https://developer.blender.org/rB774d18804fe3de51c601f3f0684218cd6af1db09

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`.

===================================================================

M	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);



More information about the Bf-blender-cvs mailing list