瀏覽代碼

Merge pull request #10365 from RandomShaper/fix-10074

Keep shapes bound to out-of-tree 3D physics objects
Juan Linietsky 8 年之前
父節點
當前提交
603b262d9b
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      scene/3d/collision_shape.cpp

+ 0 - 7
scene/3d/collision_shape.cpp

@@ -89,13 +89,6 @@ void CollisionShape::_notification(int p_what) {
 				parent->shape_owner_set_transform(owner_id, get_transform());
 			}
 		} break;
-		case NOTIFICATION_EXIT_TREE: {
-			if (parent) {
-				parent->remove_shape_owner(owner_id);
-			}
-			owner_id = 0;
-			parent = NULL;
-		} break;
 		case NOTIFICATION_UNPARENTED: {
 			if (parent) {
 				parent->remove_shape_owner(owner_id);