Procházet zdrojové kódy

Fix: Curve Pin error when no driver

Joseph Brandenburg před 6 měsíci
rodič
revize
8caf0b66ea
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      xForm_containers.py

+ 2 - 0
xForm_containers.py

@@ -884,6 +884,8 @@ class xFormCurvePin(MantisNode):
                 elif isinstance(driver, UtilitySwitch):
                     xf=driver.GetxForm()
                     prop_amount = xf.evaluate_input(driver.evaluate_input('Parameter'))
+                else:
+                    return
                 for template in self.socket_templates:
                     if template.name == socket_name: break
                 setattr(constraint, template.blender_property, prop_amount )