UI: initialize Overridable Static checkbox for custom properties.
authorAlexander Gavrilov <angavrilov@gmail.com>
Sat, 15 Dec 2018 15:50:44 +0000 (18:50 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Sun, 16 Dec 2018 14:09:32 +0000 (17:09 +0300)
release/scripts/startup/bl_operators/wm.py

index 9715c5e8d54d671ea594a5c9977e8af84cd2cd19..e26e2ddf214a82f1eb25f98edea11a19dbf5f7eb 100644 (file)
@@ -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: