mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:49:00 +08: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
@ -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()
|
||||
|
||||
|
@ -28,4 +28,4 @@ class PlatformPhysicsOperation(Operation):
|
||||
return group
|
||||
|
||||
def __repr__(self):
|
||||
return "PlatformPhysicsOperation(t = {0})".format(self._position)
|
||||
return "PlatformPhysicsOperation(new_position = {0})".format(self._new_position)
|
||||
|
Loading…
x
Reference in New Issue
Block a user