From db8b0acdded697489eb507b274d7b418b4c83d97 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 3 Jun 2015 19:10:21 +0200 Subject: [PATCH] Ignore selection when moving objects due to collision Fixes #35 --- cura/PlatformPhysics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index c52e8a9174..5e4bd5a415 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -11,6 +11,7 @@ from UM.Math.Float import Float from UM.Math.Vector import Vector from UM.Math.AxisAlignedBox import AxisAlignedBox from UM.Application import Application +from UM.Scene.Selection import Selection from . import PlatformPhysicsOperation from . import ConvexHullJob @@ -60,6 +61,8 @@ class PlatformPhysics: job = ConvexHullJob.ConvexHullJob(node) job.start() node._convex_hull_job = job + elif Selection.isSelected(node): + pass else: # Check for collisions between convex hulls for other_node in BreadthFirstIterator(root):