From 7a85385baf9b8a0e2b9d61fe553c5e6102d90a15 Mon Sep 17 00:00:00 2001 From: Kalle-Samuli Riihikoski Date: Mon, 20 Jun 2011 16:39:26 +0000 Subject: small fixes here and there. --- io_coat3D/__init__.py | 2 +- io_coat3D/coat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'io_coat3D') 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: -- cgit v1.2.3