mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
43747f3f57
commit
bac58ecc82
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ class PlatformPhysics:
|
||||||
|
|
||||||
node._outside_buildarea = True
|
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 = PlatformPhysicsOperation.PlatformPhysicsOperation(node, move_vector)
|
||||||
op.push()
|
op.push()
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,4 @@ class PlatformPhysicsOperation(Operation):
|
||||||
return group
|
return group
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "PlatformPhysicsOperation(t = {0})".format(self._position)
|
return "PlatformPhysicsOperation(new_position = {0})".format(self._new_position)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue