diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-15 18:50:44 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-16 17:09:32 +0300 |
commit | cfa46ddf6c223472a1b4ec47e6baa4d91f787d4c (patch) | |
tree | b00bfd8f8cde23d7a86673229417b3e4012a9075 /release | |
parent | 1578ce46c57463984010d678b1988c78b20f7c74 (diff) |
UI: initialize Overridable Static checkbox for custom properties.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |