From cfe29a7b51cd27d0b1606c0fe1817983acc0f8af Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 24 Mar 2015 17:03:39 +0100 Subject: [PATCH] Do not try to perform platform physics movement when there is no bounding box --- PlatformPhysics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlatformPhysics.py b/PlatformPhysics.py index 5381892248..4c76a035e9 100644 --- a/PlatformPhysics.py +++ b/PlatformPhysics.py @@ -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))