| 3768 | } |
| 3769 | |
| 3770 | void Key_ReloadScene() |
| 3771 | { |
| 3772 | GLOBAL(isInTrainingMode) = false; |
| 3773 | GLOBAL(skipSavingSceneFile) = false; |
| 3774 | |
| 3775 | ClearBumpTop(); |
| 3776 | |
| 3777 | assert(winOS->GetLibraryManager()); |
| 3778 | scnManager->setCurrentLibrary(winOS->GetLibraryManager()->getDesktopLibrary()); |
| 3779 | |
| 3780 | if (!scnManager->startupDemoSceneDir.isNull()) |
| 3781 | { |
| 3782 | printUnique("RELOAD_SCENE_MSG", QT_TRANSLATE_NOOP("BtUtilStrings", "Reloading scene...")); |
| 3783 | loadDemoSceneFromDirectory(QDir(scnManager->startupDemoSceneDir)); |
| 3784 | } |
| 3785 | else |
| 3786 | { |
| 3787 | if (!LoadSceneFromFile()) |
| 3788 | CreateBumpObjectsFromWorkingDirectory(); |
| 3789 | } |
| 3790 | cam->getCornerInfoControl()->disable(); |
| 3791 | |
| 3792 | } |
| 3793 | boost::function<void()> _onInvokeCommandHandler; |
| 3794 | |
| 3795 | void setOnInvokeCommandHandler( boost::function<void()> onInvokeCommandHandler ) |