diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-26 18:04:57 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-26 18:04:57 +0300 |
commit | 489bf0ee72290e4c0b4cae861672d20896a7b658 (patch) | |
tree | 7e42a2d8ca8de3907b722392d6451d9ad13cf315 | |
parent | a9fa6efcde330570bd9837a1085a34ef4aac3222 (diff) |
Fix the error if no object is active.
-rw-r--r-- | io_coat3D/coat.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index b2dd2a56..705c75a0 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -161,8 +161,9 @@ class SCENE_PT_Main(ObjectButtonsPanel,bpy.types.Panel): row = layout.row() row.label(text="Texture output folder:") - row = layout.row() - row.prop(coa,"texturefolder",text="") + if(context.selected_objects): + row = layout.row() + row.prop(coa,"texturefolder",text="") row = layout.row() if(coat['status'] == 0): row.label(text="Exchange Folder: not connected") |