Fixed issue for convex null job when there is no active profile

This commit is contained in:
Jaime van Kessel 2015-09-04 10:40:46 +02:00
parent 6d207a75d1
commit ecf5fd4b7d

View File

@ -48,6 +48,7 @@ class ConvexHullJob(Job):
hull = hull.getMinkowskiHull(Polygon(numpy.array([[-1, -1], [-1, 1], [1, 1], [1, -1]], numpy.float32)))
profile = Application.getInstance().getMachineManager().getActiveProfile()
if profile:
if profile.getSettingValue("print_sequence") == "one_at_a_time" and not self._node.getParent().callDecoration("isGroup"):
# Printing one at a time and it's not an object in a group
self._node.callDecoration("setConvexHullBoundary", copy.deepcopy(hull))