MCPcopy Create free account
hub / github.com/bumptop/BumpTop / Key_ReloadScene

Function Key_ReloadScene

trunk/win/Source/BT_Util.cpp:3770–3792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3768}
3769
3770void 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}
3793boost::function<void()> _onInvokeCommandHandler;
3794
3795void setOnInvokeCommandHandler( boost::function<void()> onInvokeCommandHandler )

Callers 3

onStateChangedMethod · 0.85
onStateChangedMethod · 0.85
onStateChangedMethod · 0.85

Calls 12

ClearBumpTopFunction · 0.85
assertClass · 0.85
LoadSceneFromFileFunction · 0.85
GetLibraryManagerMethod · 0.80
setCurrentLibraryMethod · 0.80
getDesktopLibraryMethod · 0.80
getCornerInfoControlMethod · 0.80
QDirClass · 0.50
isNullMethod · 0.45
disableMethod · 0.45

Tested by 1

onStateChangedMethod · 0.68