From d1f68143a4ca346f6441832127cca26d6c8fbaad Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sat, 21 May 2016 14:17:58 +0200 Subject: [PATCH] Adjustments to support immutable AxisAlignedBox. Contributes to CURA-1504 --- cura/CuraApplication.py | 4 ++-- cura/PlatformPhysics.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 9b113b7de8..72ff8aec8c 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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 diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 55cc3652e1..57d8f4e0ba 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -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.