summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authordankan1890 <mewuidev2@gmail.com>2020-03-28 01:50:00 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-28 12:37:44 +0100
commit06e8740184eb056df7ca67c75b828435d0f004fe (patch)
tree3bd24159fcd06e7ea6c6ae3ed02864b0d3e24edf /scene
parentfcfffd729789cd80aa77056ca089697b52297d04 (diff)
Fixed missed occurrences in #37361 renamings.
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/physics_body_2d.cpp2
-rw-r--r--scene/3d/physics_body_3d.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/scene/2d/physics_body_2d.cpp b/scene/2d/physics_body_2d.cpp
index 289860d9c6..fe91e63792 100644
--- a/scene/2d/physics_body_2d.cpp
+++ b/scene/2d/physics_body_2d.cpp
@@ -373,7 +373,7 @@ void RigidBody2D::_direct_state_changed(Object *p_state) {
#ifdef DEBUG_ENABLED
state = Object::cast_to<PhysicsDirectBodyState2D>(p_state);
#else
- state = (Physics2DDirectBodyState *)p_state; //trust it
+ state = (PhysicsDirectBodyState2D *)p_state; //trust it
#endif
set_block_transform_notify(true); // don't want notify (would feedback loop)
diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp
index 1f3e2b8373..680d6e8594 100644
--- a/scene/3d/physics_body_3d.cpp
+++ b/scene/3d/physics_body_3d.cpp
@@ -374,7 +374,7 @@ void RigidBody3D::_direct_state_changed(Object *p_state) {
#ifdef DEBUG_ENABLED
state = Object::cast_to<PhysicsDirectBodyState3D>(p_state);
#else
- state = (PhysicsDirectBodyState *)p_state; //trust it
+ state = (PhysicsDirectBodyState3D *)p_state; //trust it
#endif
set_ignore_transform_notification(true);
@@ -1300,7 +1300,7 @@ void KinematicBody3D::_direct_state_changed(Object *p_state) {
#ifdef DEBUG_ENABLED
PhysicsDirectBodyState3D *state = Object::cast_to<PhysicsDirectBodyState3D>(p_state);
#else
- PhysicsDirectBodyState *state = (PhysicsDirectBodyState *)p_state; //trust it
+ PhysicsDirectBodyState3D *state = (PhysicsDirectBodyState3D *)p_state; //trust it
#endif
linear_velocity = state->get_linear_velocity();
@@ -2106,7 +2106,7 @@ void PhysicalBone3D::_direct_state_changed(Object *p_state) {
#ifdef DEBUG_ENABLED
state = Object::cast_to<PhysicsDirectBodyState3D>(p_state);
#else
- state = (PhysicsDirectBodyState *)p_state; //trust it
+ state = (PhysicsDirectBodyState3D *)p_state; //trust it
#endif
Transform global_transform(state->get_transform());