瀏覽代碼

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;