浏览代码

Merge pull request #51277 from lawnjelly/portals_debug_collision_shapes

Rémi Verschelde 4 年之前
父节点
当前提交
28b5f07355
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/3d/collision_object.cpp

+ 1 - 0
scene/3d/collision_object.cpp

@@ -256,6 +256,7 @@ void CollisionObject::_update_debug_shapes() {
 				Ref<Mesh> mesh = s.shape->get_debug_mesh();
 				VS::get_singleton()->instance_set_base(s.debug_shape, mesh->get_rid());
 				VS::get_singleton()->instance_set_transform(s.debug_shape, get_global_transform() * shapedata.xform);
+				VS::get_singleton()->instance_set_portal_mode(s.debug_shape, VisualServer::INSTANCE_PORTAL_MODE_GLOBAL);
 			}
 		}
 	}