mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
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.
This commit is contained in:
parent
cbb1470a2e
commit
d6a677f878
@ -59,7 +59,7 @@ OcclusionHandle PortalRenderer::instance_moving_create(VSInstance *p_instance, R
|
|||||||
}
|
}
|
||||||
|
|
||||||
OcclusionHandle handle = pool_id + 1;
|
OcclusionHandle handle = pool_id + 1;
|
||||||
instance_moving_update(handle, p_aabb);
|
instance_moving_update(handle, p_aabb, true);
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user