mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:26:01 +08:00
Catch an exception from numpy that happens when loading some models
This commit is contained in:
parent
11d8831d7a
commit
77703e1fb8
@ -187,7 +187,10 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
for child in self._node.getChildren():
|
for child in self._node.getChildren():
|
||||||
child_hull = child.callDecoration("_compute2DConvexHull")
|
child_hull = child.callDecoration("_compute2DConvexHull")
|
||||||
if child_hull:
|
if child_hull:
|
||||||
|
try:
|
||||||
points = numpy.append(points, child_hull.getPoints(), axis = 0)
|
points = numpy.append(points, child_hull.getPoints(), axis = 0)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
if points.size < 3:
|
if points.size < 3:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user