summaryrefslogtreecommitdiff
path: root/modules/bullet/pin_joint_bullet.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-27 07:46:40 +0200
committerGitHub <noreply@github.com>2018-08-27 07:46:40 +0200
commit98cc2ce1dd62947e240f61d61b995328b73fca6a (patch)
tree49a8aa1bdeac869ea8f0aa5f60266d5cd4644e39 /modules/bullet/pin_joint_bullet.cpp
parentdb55d8a4b6ad6c14f2131e02b50689eb8380276f (diff)
parent76d02b13a18d477dcf21aa3a0e5664fc0e609ba3 (diff)
Merge pull request #21433 from AndreaCatania/megafix
Multiple fixes on Physics things
Diffstat (limited to 'modules/bullet/pin_joint_bullet.cpp')
-rw-r--r--modules/bullet/pin_joint_bullet.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bullet/pin_joint_bullet.cpp b/modules/bullet/pin_joint_bullet.cpp
index c4e5b8cdbe..63e22d7dab 100644
--- a/modules/bullet/pin_joint_bullet.cpp
+++ b/modules/bullet/pin_joint_bullet.cpp
@@ -84,9 +84,11 @@ real_t PinJointBullet::get_param(PhysicsServer::PinJointParam p_param) const {
return p2pConstraint->m_setting.m_damping;
case PhysicsServer::PIN_JOINT_IMPULSE_CLAMP:
return p2pConstraint->m_setting.m_impulseClamp;
+#ifndef DISABLE_DEPRECATED
default:
- WARN_PRINTS("This get parameter is not supported");
- return 0;
+ ERR_EXPLAIN("This parameter " + itos(p_param) + " is deprecated");
+ WARN_DEPRECATED
+#endif // DISABLE_DEPRECATED
}
}