소스 검색

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 )