Skip to content
Snippets Groups Projects
Commit 489bf0ee authored by Kalle-Samuli Riihikoski's avatar Kalle-Samuli Riihikoski
Browse files

Fix the error if no object is active.

parent a9fa6efc
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment