Commit 8429a970 authored by Clément Fauconnier's avatar Clément Fauconnier

fixed a bug where where the active scene was overwritten by the last one

parent 0bbc5ec8
......@@ -1534,12 +1534,13 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
{
freezeW3CWidgets(true);
persistCurrentScene();
ClearUndoStack();
mActiveScene = targetScene;
mActiveSceneIndex = index;
persistCurrentScene();
setDocument(pDocumentProxy, forceReload);
updateSystemScaleFactor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment