mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Portals - Fix secondary PVS bug
Fixes a bug whereby it read from the primary PVS in the gameplay monitor, using the size from the secondary PVS. This would read out of bounds and crash. Removed debug code to update the gameplay monitor from the preview camera - this is no longer required. Temporarily revert to the simple PVS generation method, because I've noticed a bug in the complex version, and the simple version is safer while I fix this.
This commit is contained in:
parent
42e40a7d3c
commit
cfe806a929
3 changed files with 17 additions and 19 deletions
|
|
@ -272,8 +272,8 @@ void PVSBuilder::calculate_pvs(PortalRenderer &p_portal_renderer, String p_filen
|
|||
|
||||
log("pvs from room : " + itos(n));
|
||||
|
||||
// trace_rooms_recursive_simple(0, n, n, -1, false, -1, dummy_planes, bf);
|
||||
trace_rooms_recursive(0, n, n, -1, false, -1, dummy_planes, bf);
|
||||
trace_rooms_recursive_simple(0, n, n, -1, false, -1, dummy_planes, bf);
|
||||
// trace_rooms_recursive(0, n, n, -1, false, -1, dummy_planes, bf);
|
||||
|
||||
create_secondary_pvs(n, neighbors, bf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue