Browse Source

Add Error message to Set Bone Length

Joseph Brandenburg 6 months ago
parent
commit
9e590f2204
1 changed files with 2 additions and 0 deletions
  1. 2 0
      misc_nodes.py

+ 2 - 0
misc_nodes.py

@@ -1309,6 +1309,8 @@ class UtilitySetBoneLength(MantisNode):
             matrix[3][3] = self.evaluate_input("Length")
             matrix[3][3] = self.evaluate_input("Length")
             self.parameters["Length"] = self.evaluate_input("Length")
             self.parameters["Length"] = self.evaluate_input("Length")
             self.parameters["Bone Matrix"] = matrix
             self.parameters["Bone Matrix"] = matrix
+        else:
+            raise RuntimeError(f"Cannot get matrix for {self}")
         self.prepared = True
         self.prepared = True
         self.executed = True
         self.executed = True