App: InVRMLObject use two different index variables for restoring and saving

This is needed as it can happen (e.g. when debugging) that while restoring a project the auto-save mechanism is called that messes up the index value
This commit is contained in:
wmayer
2024-03-18 10:49:30 +01:00
committed by wwmayer
parent 3ad453d5e3
commit 959e9ed43d
2 changed files with 14 additions and 13 deletions

View File

@@ -67,7 +67,8 @@ protected:
private:
mutable std::string vrmlPath;
mutable int index{0};
mutable int indexRestore{0};
mutable int indexSave{0};
};
} //namespace App