Skip to content

Transform your 3D texturing workflow with the power of generative AI, directly within Blender!

fix being able to generate with an empty model directory

sakalond4c81b9802da3
diff --git a/stablegen/stablegen.py b/stablegen/stablegen.py
index 8a684ac..60db776 100755
--- a/stablegen/stablegen.py
+++ b/stablegen/stablegen.py
@@ -196,6 +196,9 @@ class StableGenPanel(bpy.types.Panel):
if not bpy.app.online_access:
action_row.operator("object.test_stable", text="Enable online access in preferences", icon="ERROR")
action_row.enabled = False
+ elif not scene.model_name:
+ action_row.operator("object.test_stable", text="Cannot generate: Model Directory Empty", icon="ERROR")
+ action_row.enabled = False
elif scene.generation_status == 'idle':
action_row.operator("object.test_stable", text="Generate", icon="PLAY")
elif scene.generation_status == 'running':