소스 검색

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

Juan Linietsky 9 년 전
부모
커밋
df5fa62ab9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/3d/physics_joint.cpp

+ 1 - 1
scene/3d/physics_joint.cpp

@@ -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;