diff options
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 5cb7a44267a..3919ecdd72f 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -27,8 +27,6 @@ from bpy.props import (StringProperty, EnumProperty, ) -from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_ui_prop_clear - from bpy.app.translations import pgettext_tip as tip_ @@ -1029,6 +1027,8 @@ class WM_OT_properties_edit(Operator): ) def execute(self, context): + from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_ui_prop_clear + data_path = self.data_path value = self.value prop = self.property @@ -1080,6 +1080,8 @@ class WM_OT_properties_edit(Operator): return {'FINISHED'} def invoke(self, context, event): + from rna_prop_ui import rna_idprop_ui_prop_get + data_path = self.data_path if not data_path: @@ -1109,6 +1111,8 @@ class WM_OT_properties_add(Operator): data_path = rna_path def execute(self, context): + from rna_prop_ui import rna_idprop_ui_prop_get + data_path = self.data_path item = eval("context.%s" % data_path) |