mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-05 19:19:11 -06:00
Removing the last remnants of ProfileFile
This commit is contained in:
@@ -312,15 +312,19 @@ void OpenSpaceEngine::initialize() {
|
||||
);
|
||||
}
|
||||
else {
|
||||
// Load the profile
|
||||
global::profile = Profile(inputProfile);
|
||||
|
||||
|
||||
global::profile.convertToSceneFile(inputProfile, outputAsset);
|
||||
// Then save the profile to a scene so that we can load it with the
|
||||
// existing infrastructure
|
||||
std::ofstream scene(outputAsset);
|
||||
std::string sceneContent = convertToSceneFile(global::profile.profile);
|
||||
scene << sceneContent;
|
||||
|
||||
// Set asset name to that of the profile because a new scene file will be
|
||||
// created with that name, and also because the profile name will override
|
||||
// an asset name if both are provided.
|
||||
global::configuration.asset =
|
||||
absPath("${TEMPORARY}/") + global::configuration.profile;
|
||||
global::configuration.asset = outputAsset;
|
||||
global::configuration.usingProfile = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user