Skip to content

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

fix applied preset not detecting correctly when it does not have controlnet units attached

sakalond23623f2d5a5f
diff --git a/stablegen/stablegen.py b/stablegen/stablegen.py
index d41ae55..4c827eb 100755
--- a/stablegen/stablegen.py
+++ b/stablegen/stablegen.py
@@ -86,6 +86,8 @@ def update_parameters(self, context):
(current.get(key), preset.get(key))
for key in GEN_PARAMETERS if key in preset
):
+ units_match = True
+
# Now check ControlNet units if present in the preset
if "controlnet_units" in preset:
# Get current controlnet units as comparable data