Merge pull request #1193 from Areloch/EditorObjectSavingCallback

Adds a callback invoke for objects in the scene to inform them if the level is being saved
This commit is contained in:
Brian Roberts 2024-02-03 16:27:35 -06:00 committed by GitHub
commit c92a88a852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,7 +328,13 @@ function EditorSaveMission()
// now write the terrain and mission files out:
if(EWorldEditor.isDirty || ETerrainEditor.isMissionDirty)
{
//Inform objects a save is happening, in case there is any special pre-save behavior a class needs to do
getScene(0).callOnChildren("onSaving", $Server::MissionFile);
getScene(0).save($Server::MissionFile);
}
if(ETerrainEditor.isDirty)
{
// Find all of the terrain files