Prevent models from vibrating on the z axis due to fp errors, change the tolerance of the comparison.

Contributes to CURA-1504
This commit is contained in:
Simon Edwards 2016-05-12 13:16:14 +02:00
parent 43747f3f57
commit bac58ecc82
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ class PlatformPhysics:
node._outside_buildarea = True
if move_vector != Vector():
if not Vector.Null.equals(move_vector, epsilon=1e-5):
op = PlatformPhysicsOperation.PlatformPhysicsOperation(node, move_vector)
op.push()