UI: initialize Overridable Static checkbox for custom properties.
[blender.git] / 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: