misc cleanup

This commit is contained in:
Juan Linietsky
2015-10-17 10:29:54 -03:00
parent b3cda43a0f
commit ab22203791
13 changed files with 35 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ void CollisionPolygon::_notification(int p_what) {
} break;
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: {
if (!can_update_body && shape_from>=0 && shape_from>=0) {
if (!can_update_body && shape_from>=0 && shape_to>=0) {
CollisionObject *co = get_parent()->cast_to<CollisionObject>();
if (co) {