瀏覽代碼

Fix: Curve Pin error when no driver

Joseph Brandenburg 6 月之前
父節點
當前提交
8caf0b66ea
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 )