diff options
Diffstat (limited to 'io_coat3D/__init__.py')
-rw-r--r-- | io_coat3D/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 02c2848d..f1b408e4 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -857,6 +857,13 @@ class SCENE_PT_Main(bpy.types.Panel): bl_region_type = "UI" bl_category = 'View' + @classmethod + def poll(cls, context): + if bpy.context.mode == 'OBJECT': + return True + else: + return False + def draw(self, context): layout = self.layout coat = bpy.coat3D @@ -874,6 +881,7 @@ class SCENE_PT_Main(bpy.types.Panel): row.operator("update_exchange_folder.pilgway_3d_coat", text="Apply folder") else: + #Here you add your GUI row = layout.row() row.prop(coat3D,"type",text = "") @@ -885,6 +893,9 @@ class SCENE_PT_Main(bpy.types.Panel): col = flow.column() col.operator("import_applink.pilgway_3d_coat", text="Update") + + + class ObjectButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' |