Merge pull request #51277 from lawnjelly/portals_debug_collision_shapes

This commit is contained in:
Rémi Verschelde 2021-08-05 16:39:03 +02:00 committed by GitHub
commit 28b5f07355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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