psk i/o: restrict panel to object mode T50357

This commit is contained in:
Brendon Murphy 2017-01-18 09:59:44 +11:00
parent 96ebb5adc2
commit f20cd1211e
2 changed files with 2 additions and 0 deletions

View File

@ -2279,6 +2279,7 @@ class Panel_UDKExport( bpy.types.Panel ):
bl_category = "File I/O"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_context = "objectmode"
#def draw_header(self, context):
# layout = self.layout

View File

@ -1104,6 +1104,7 @@ class Panel_UDKImport(bpy.types.Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_category = "File I/O"
bl_context = "objectmode"
filepath = StringProperty(
subtype='FILE_PATH',