reduce imports on startup

This commit is contained in:
Campbell Barton
2013-07-03 01:20:32 +00:00
parent e60a33ba07
commit ffaebe2237
2 changed files with 7 additions and 3 deletions

View File

@@ -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)