mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
Do not try to perform platform physics movement when there is no bounding box
This commit is contained in:
parent
d650cbe26c
commit
cfe29a7b51
@ -24,6 +24,9 @@ class PlatformPhysics:
|
||||
continue
|
||||
|
||||
bbox = node.getBoundingBox()
|
||||
if not bbox or not bbox.isValid():
|
||||
continue
|
||||
|
||||
if not Float.fuzzyCompare(bbox.bottom, 0.0):
|
||||
self._signal_source = node
|
||||
op = PlatformPhysicsOperation(node, Vector(0, -bbox.bottom, 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user