Преглед на файлове

Added error and message when name is invalid for InputExistingGeometryData

Joseph Brandenburg преди 9 месеца
родител
ревизия
4c63019bec
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      misc_containers.py

+ 2 - 0
misc_containers.py

@@ -1138,6 +1138,8 @@ class InputExistingGeometryData:
         bObject = data.curves.get(self.evaluate_input("Name"))
         if not bObject:
             bObject = data.meshes.get(self.evaluate_input("Name"))
+        if bObject is None:
+            raise RuntimeError(f"Could not find a mesh or curve datablock named \"{self.evaluate_input('Name')}\" for node {self}")
         return bObject