Browse Source

Fix: Curve Pin fails when connected to Group Input

Joseph Brandenburg 6 months ago
parent
commit
71e0a7b2d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      xForm_containers.py

+ 1 - 0
xForm_containers.py

@@ -838,6 +838,7 @@ class xFormCurvePin(xFormNode):
     def prep_driver_values(self, constraint):
         from .misc_nodes import UtilityDriver, UtilitySwitch
         for socket_name in ["Curve Pin Factor", "Forward Axis","Up Axis",]:
+            if self.inputs.get(socket_name) is None: continue # in case it has been bypassed
             if self.inputs[socket_name].is_linked:
                 link = self.inputs[socket_name].links[0]
                 driver = link.from_node