[Bf-extensions-cvs] [f20cd12] master: psk i/o: restrict panel to object mode T50357
meta-androcto
noreply at git.blender.org
Wed Jan 18 00:00:10 CET 2017
Commit: f20cd1211e18a2a8267f22b216c379c1bc6bd547
Author: meta-androcto
Date: Wed Jan 18 09:59:44 2017 +1100
Branches: master
https://developer.blender.org/rBAf20cd1211e18a2a8267f22b216c379c1bc6bd547
psk i/o: restrict panel to object mode T50357
===================================================================
M io_export_unreal_psk_psa.py
M io_import_scene_unreal_psa_psk.py
===================================================================
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index f5c0316..c410f91 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -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
diff --git a/io_import_scene_unreal_psa_psk.py b/io_import_scene_unreal_psa_psk.py
index 9733fa7..045ef47 100644
--- a/io_import_scene_unreal_psa_psk.py
+++ b/io_import_scene_unreal_psa_psk.py
@@ -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',
More information about the Bf-extensions-cvs
mailing list