Ignore selection when moving objects due to collision

Fixes #35
This commit is contained in:
Arjen Hiemstra 2015-06-03 19:10:21 +02:00
parent 7302d979dc
commit db8b0acdde

View file

@ -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):