turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
Other
5.85k stars 619 forks source link

Delete a terrain cannot be undone #966

Closed Anthony-Gaudino closed 4 weeks ago

Anthony-Gaudino commented 1 month ago

In Windows 11, running a Debug build, if I add a terrain to an empty scene and delete the terrain from the entities panel, if I try to undo this operation (ctrl+z) it doesn't work. Also if I keep pressing (ctrl+z) the editor crashes with:

Exception thrown at 0x00007FFC0C7BFE4C in Editor_Windows.exe: Microsoft C++ exception: std::length_error at memory location 0x000000A49FBB31E0.
Unhandled exception at 0x00007FFC0C7BFE4C in Editor_Windows.exe: Microsoft C++ exception: std::length_error at memory location 0x000000A49FBB31E0

Another thing to note is that deleting the terrain leaves trees billboards in the scene.

turanszkij commented 4 weeks ago

Thanks for reporting, it is now fixed.