mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: only run polygroup union logic if it won't be collapsed
No point in running this code if we are going to collapse it. This also fixes a possible deadlock when removing and rebuilding individual tiles.
This commit is contained in:
parent
1ad2f18573
commit
8eb294b731
@ -442,7 +442,8 @@ static void copyBaseDisjointSets(const dtTraverseTableCreateParams* params)
|
||||
if (i > 0) // Don't copy the base into itself.
|
||||
set.copy(targetSet);
|
||||
|
||||
unionTraverseLinkedPolyGroups(params, i);
|
||||
if (!params->collapseGroups)
|
||||
unionTraverseLinkedPolyGroups(params, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user