ソースを参照

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 )