mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +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
|
continue
|
||||||
|
|
||||||
bbox = node.getBoundingBox()
|
bbox = node.getBoundingBox()
|
||||||
|
if not bbox or not bbox.isValid():
|
||||||
|
continue
|
||||||
|
|
||||||
if not Float.fuzzyCompare(bbox.bottom, 0.0):
|
if not Float.fuzzyCompare(bbox.bottom, 0.0):
|
||||||
self._signal_source = node
|
self._signal_source = node
|
||||||
op = PlatformPhysicsOperation(node, Vector(0, -bbox.bottom, 0))
|
op = PlatformPhysicsOperation(node, Vector(0, -bbox.bottom, 0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user