History

Merge branch 'master' into feature/head-standard-action

Anthony J. Thibault committed 9 years ago

Commit 108cd802 parents 2120e63 2a0fc5b22 files · +1279 −430Browse files

Showing the changes to interface/src/Application.cpp (1 of 22 files). Show all

Unified · Split

interface/src/Application.cpp+4−1
@@ -535,6 +535,7 @@ bool setupEssentials(int& argc, char** argv) { · 534 unmodified lines
535535 DependencyManager::set<OctreeStatsProvider>(nullptr, qApp->getOcteeSceneStats());
536536 DependencyManager::set<AvatarBookmarks>();
537537 DependencyManager::set<LocationBookmarks>();
538+ DependencyManager::set<Snapshot>();
538539
539540 return previousSessionCrashed;
540541 }
@@ -2052,6 +2053,7 @@ void Application::initializeUi() { · 1511 unmodified lines
20522053 rootContext->setContextProperty("Scene", DependencyManager::get<SceneScriptingInterface>().data());
20532054 rootContext->setContextProperty("Render", _renderEngine->getConfiguration().get());
20542055 rootContext->setContextProperty("Reticle", getApplicationCompositor().getReticleInterface());
2056+ rootContext->setContextProperty("Snapshot", DependencyManager::get<Snapshot>().data());
20552057
20562058 rootContext->setContextProperty("ApplicationCompositor", &getApplicationCompositor());
20572059
@@ -5517,6 +5519,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri · 3459 unmodified lines
55175519 scriptEngine->registerGlobalObject("Menu", MenuScriptingInterface::getInstance());
55185520 scriptEngine->registerGlobalObject("Stats", Stats::getInstance());
55195521 scriptEngine->registerGlobalObject("Settings", SettingsScriptingInterface::getInstance());
5522+ scriptEngine->registerGlobalObject("Snapshot", DependencyManager::get<Snapshot>().data());
55205523 scriptEngine->registerGlobalObject("AudioDevice", AudioDeviceScriptingInterface::getInstance());
55215524 scriptEngine->registerGlobalObject("AudioStats", DependencyManager::get<AudioClient>()->getStats().data());
55225525 scriptEngine->registerGlobalObject("AudioScope", DependencyManager::get<AudioScope>().data());
@@ -6461,7 +6464,7 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa · 938 unmodified lines
64616464 // Get a screenshot and save it
64626465 QString path = Snapshot::saveSnapshot(getActiveDisplayPlugin()->getScreenshot(aspectRatio));
64636466 // If we're not doing an animated snapshot as well...
6464− if (!includeAnimated || !(SnapshotAnimated::alsoTakeAnimatedSnapshot.get())) {
6467+ if (!includeAnimated) {
64656468 // Tell the dependency manager that the capture of the still snapshot has taken place.
64666469 emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(path, notify);
64676470 } else {