Explorar o código

Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED (fixes invalid transform of collision shape in cases where the node is not supposed to enter the scene tree)

Oliver Dick %!s(int64=4) %!d(string=hai) anos
pai
achega
f1432f2788
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/3d/collision_shape_3d.cpp

+ 1 - 0
scene/3d/collision_shape_3d.cpp

@@ -93,6 +93,7 @@ void CollisionShape3D::_notification(int p_what) {
 				if (shape.is_valid()) {
 					parent->shape_owner_add_shape(owner_id, shape);
 				}
+				_update_in_shape_owner();
 			}
 		} break;
 		case NOTIFICATION_ENTER_TREE: {