[Bf-blender-cvs] [be926be] compositor-2016: Fix T48579: RNA shadows new custom properties

Campbell Barton noreply at git.blender.org
Wed Jun 8 21:53:01 CEST 2016


Commit: be926bedb45990fdd0f1260a4d3160d1b648bbb5
Author: Campbell Barton
Date:   Mon Jun 6 12:19:58 2016 +1000
Branches: compositor-2016
https://developer.blender.org/rBbe926bedb45990fdd0f1260a4d3160d1b648bbb5

Fix T48579: RNA shadows new custom properties

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

M	release/scripts/startup/bl_operators/wm.py

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

diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 76d41d9..cc8921f 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1357,7 +1357,10 @@ class WM_OT_properties_add(Operator):
 
             return prop_new
 
-        prop = unique_name(item.keys())
+        prop = unique_name(
+                {*item.keys(),
+                 *type(item).bl_rna.properties.keys(),
+                 })
 
         item[prop] = 1.0
         rna_idprop_ui_prop_update(item, prop)




More information about the Bf-blender-cvs mailing list