Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2016-03-01 13:04:59 +0300
committerJaime van Kessel <nallath@gmail.com>2016-03-01 13:04:59 +0300
commitf05eaf6d9c6d07054b88e20259ad4eb62d78c4b9 (patch)
tree17399ad03489f49b992cee6bbca3ed3769644e73 /cura/PlatformPhysics.py
parent41d00af345c873012b53306ac35cce9a4796ffe4 (diff)
Too high objects (in one at a time) are now greyed out
CURA-972
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r--cura/PlatformPhysics.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index 3933802135..df841bd71d 100644
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -60,12 +60,16 @@ class PlatformPhysics:
build_volume_bounding_box = copy.deepcopy(self._build_volume.getBoundingBox())
build_volume_bounding_box.setBottom(-9001) # Ignore intersections with the bottom
+ node._outside_buildarea = False
# Mark the node as outside the build volume if the bounding box test fails.
if build_volume_bounding_box.intersectsBox(bbox) != AxisAlignedBox.IntersectionResult.FullIntersection:
node._outside_buildarea = True
else:
- node._outside_buildarea = False
+ # When printing one at a time too high objects are not printable.
+ if Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("print_sequence") == "one_at_a_time":
+ if node.getBoundingBox().height > Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("gantry_height"):
+ node._outside_buildarea = True
# Move it downwards if bottom is above platform
move_vector = Vector()