DarkRadiant: master 72700e36

Author Committer Branch Timestamp Parent
greebo greebo master 08.10.2022 04:10 master 4bf6abca
Affected Issues  0006120: Undoing snap to grid with prefabs causes crash
Changeset 0006120: Add a crashing unit test covering the scenario

After grid-snapping some brushes might be degenerate, and currently these
are not immediately removed the scene. Next time the selection system is
finishing an operation (which in this scenario is a null operation), the
degenerate brushes are removed outside any undoable transaction.
Hitting undo will crash the app due to dangling references.
mod - test/Grid.cpp Diff File
add - test/resources/tdm/maps/degenerate_brushes_after_gridsnap.map Diff File