Browse Source

Catch an exception from numpy that happens when loading some models

Diego Prado Gesto 6 years ago
parent
commit
77703e1fb8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      cura/Scene/ConvexHullDecorator.py

+ 4 - 1
cura/Scene/ConvexHullDecorator.py

@@ -187,7 +187,10 @@ class ConvexHullDecorator(SceneNodeDecorator):
             for child in self._node.getChildren():
                 child_hull = child.callDecoration("_compute2DConvexHull")
                 if child_hull:
-                    points = numpy.append(points, child_hull.getPoints(), axis = 0)
+                    try:
+                        points = numpy.append(points, child_hull.getPoints(), axis = 0)
+                    except ValueError:
+                        pass
 
                 if points.size < 3:
                     return None