diff options
-rw-r--r-- | io_coat3D/__init__.py | 2 | ||||
-rw-r--r-- | io_coat3D/coat.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 3cadefdc..9a787a02 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -19,7 +19,7 @@ bl_info = { "name": "3D-Coat Applink", "author": "Kalle-Samuli Riihikoski (haikalle)", - "version": (1, 8, 0), + "version": (3, 5, 20), "blender": (2, 5, 8), "api": 35622, "location": "Scene > 3D-Coat Applink", diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index 3300dbe6..ee27b640 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -80,7 +80,7 @@ class SCENE_PT_Main(ObjectButtonsPanel,bpy.types.Panel): row = layout.row() row.prop(coat3D,"type",text = "") row = layout.row() - if(context.selected_objects): + if(context.selected_objects and bpy.context.mode == 'OBJECT'): if(context.selected_objects[0].type == 'MESH'): row.active = True else: |