From 258831c12ec4d6717f3137e84a29699e6dd6adbf Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Thu, 5 Aug 2021 13:28:11 +0100 Subject: [PATCH] Portals - fix showing debug collision shapes Set the portal_mode to GLOBAL on creation. --- scene/3d/collision_object.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp index d043ef9ce35..78b3f1b072f 100644 --- a/scene/3d/collision_object.cpp +++ b/scene/3d/collision_object.cpp @@ -256,6 +256,7 @@ void CollisionObject::_update_debug_shapes() { Ref 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); } } }