Adjustments to support immutable AxisAlignedBox.

Contributes to CURA-1504
This commit is contained in:
Simon Edwards 2016-05-21 14:17:58 +02:00
parent a109396c0d
commit d1f68143a4
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ class CuraApplication(QtApplication):
self._i18n_catalog = None
self._previous_active_tool = None
self._platform_activity = False
self._scene_boundingbox = AxisAlignedBox()
self._scene_boundingbox = AxisAlignedBox.Null
self._job_name = None
self._center_after_select = False
self._camera_animation = None
@ -283,7 +283,7 @@ class CuraApplication(QtApplication):
scene_boundingbox += node.getBoundingBox()
if not scene_boundingbox:
scene_boundingbox = AxisAlignedBox()
scene_boundingbox = AxisAlignedBox.Null
if repr(self._scene_boundingbox) != repr(scene_boundingbox):
self._scene_boundingbox = scene_boundingbox

View File

@ -50,8 +50,8 @@ class PlatformPhysics:
bbox = node.getBoundingBox()
build_volume_bounding_box = copy.deepcopy(self._build_volume.getBoundingBox())
build_volume_bounding_box.setBottom(-9001) # Ignore intersections with the bottom
# Ignore intersections with the bottom
build_volume_bounding_box = self._build_volume.getBoundingBox().set(bottom=-9001)
node._outside_buildarea = False
# Mark the node as outside the build volume if the bounding box test fails.