mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 02:49:19 +02:00
feat(terrain): binary terrain files (.btf) made out of text terrain files (.txtf) named by terrain directives, checked against length and checksum of the text and loaded section by section when needed; -btf command line conversion; SBT files no longer generated, only loaded
This commit is contained in:
@@ -3202,6 +3202,12 @@ void editor_mode::enter()
|
||||
{
|
||||
m_statebackup = {Global.pCamera, FreeFlyModeFlag, Global.ControlPicking};
|
||||
|
||||
if (simulation::Region != nullptr)
|
||||
{
|
||||
// the editor works with geometry of the whole scenery, including the parts of binary terrain which weren't needed so far
|
||||
simulation::Region->load_terrain();
|
||||
}
|
||||
|
||||
Camera = Global.pCamera;
|
||||
|
||||
if (!FreeFlyModeFlag)
|
||||
|
||||
Reference in New Issue
Block a user