mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-15 08:21:23 -06:00
Feature/keybindings (#1708)
* Add action manager to handle actions in replacement of keyboard shortcuts * Implement new Action concept * Remove the shortcutscomponent as it is no longer needed * Update profile version from 1.0 to 1.1 * Add action dialog * Restructure of key specification in keys.h * Remove solid field-of-view keybind from the newhorizons profile as the setting no longer exists
This commit is contained in:
@@ -334,7 +334,7 @@ void OpenSpaceEngine::initialize() {
|
||||
// Then save the profile to a scene so that we can load it with the
|
||||
// existing infrastructure
|
||||
std::ofstream scene(outputAsset);
|
||||
std::string sceneContent = global::profile->convertToScene();
|
||||
std::string sceneContent = convertToScene(*global::profile);
|
||||
scene << sceneContent;
|
||||
|
||||
// Set asset name to that of the profile because a new scene file will be
|
||||
@@ -1103,9 +1103,9 @@ void OpenSpaceEngine::preSynchronization() {
|
||||
|
||||
if (_hasScheduledAssetLoading) {
|
||||
LINFO(fmt::format("Loading asset: {}", absPath(_scheduledAssetPathToLoad)));
|
||||
global::profile->setIgnoreUpdates(true);
|
||||
global::profile->ignoreUpdates = true;
|
||||
loadSingleAsset(_scheduledAssetPathToLoad);
|
||||
global::profile->setIgnoreUpdates(false);
|
||||
global::profile->ignoreUpdates = false;
|
||||
resetPropertyChangeFlagsOfSubowners(global::rootPropertyOwner);
|
||||
_hasScheduledAssetLoading = false;
|
||||
_scheduledAssetPathToLoad.clear();
|
||||
|
||||
Reference in New Issue
Block a user