[Bf-blender-cvs] [cfa46ddf6c2] blender2.8: UI: initialize Overridable Static checkbox for custom properties.

Alexander Gavrilov noreply at git.blender.org
Sun Dec 16 15:13:41 CET 2018


Commit: cfa46ddf6c223472a1b4ec47e6baa4d91f787d4c
Author: Alexander Gavrilov
Date:   Sat Dec 15 18:50:44 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBcfa46ddf6c223472a1b4ec47e6baa4d91f787d4c

UI: initialize Overridable Static checkbox for 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 9715c5e8d54..e26e2ddf214 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1219,6 +1219,10 @@ class WM_OT_properties_edit(Operator):
 
         item = eval("context.%s" % data_path)
 
+        # retrieve overridable static
+        exec_str = "item.is_property_overridable_static('[\"%s\"]')" % (self.property)
+        self.is_overridable_static = bool(eval(exec_str))
+
         # setup defaults
         prop_ui = rna_idprop_ui_prop_get(item, self.property, False)  # don't create
         if prop_ui:



More information about the Bf-blender-cvs mailing list