From 6cb32b696ed617d7e22ed04a90bd233e601ee966 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Sun, 29 May 2022 15:53:25 +0100 Subject: [PATCH] Portals - force full check on adding moving object Moving objects being added during instance_moving_create() were incorrectly not forcing a full check to find which room they were within. This could result in moving objects being re-added not correctly identifying their current room, and thus culling incorrectly. This PR forces a full check on calling instance_moving_create. (cherry picked from commit e7a73579e3b52e5f2afd7e6168047b3f6b85212e) --- servers/visual/portals/portal_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual/portals/portal_renderer.cpp b/servers/visual/portals/portal_renderer.cpp index 06f3015cf70..521342bc151 100644 --- a/servers/visual/portals/portal_renderer.cpp +++ b/servers/visual/portals/portal_renderer.cpp @@ -59,7 +59,7 @@ OcclusionHandle PortalRenderer::instance_moving_create(VSInstance *p_instance, R } OcclusionHandle handle = pool_id + 1; - instance_moving_update(handle, p_aabb); + instance_moving_update(handle, p_aabb, true); return handle; }