remove the invalid id error when freeing a 3D joint, fixes #2383

This commit is contained in:
Juan Linietsky 2016-01-02 08:36:40 -03:00
parent be1f2a049f
commit df5fa62ab9
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ void Joint::_notification(int p_what) {
case NOTIFICATION_EXIT_TREE: {
if (joint.is_valid()) {
_update_joint(true);
PhysicsServer::get_singleton()->free(joint);
//PhysicsServer::get_singleton()->free(joint);
joint=RID();
}
} break;