mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-10 21:50:21 -06:00
Issue/453 (#556)
* Introduced guiName to PropertyOwner * Added requirement that PropertyOwner::identifier may not contain whitespaces * Changed Name to Identifier in asset and scene files * Added new PropertyOwner to RenderEngine that owns the ScreenSpaceRenderables * Moved Name and GuiPath into GUI group * Added user-facing names to layer groups
This commit is contained in:
@@ -241,7 +241,7 @@ ghoul::Dictionary NavigationHandler::getCameraStateDictionary() {
|
||||
ghoul::Dictionary cameraDict;
|
||||
cameraDict.setValue(KeyPosition, cameraPosition);
|
||||
cameraDict.setValue(KeyRotation, cameraRotation);
|
||||
cameraDict.setValue(KeyFocus, focusNode()->name());
|
||||
cameraDict.setValue(KeyFocus, focusNode()->identifier());
|
||||
|
||||
return cameraDict;
|
||||
}
|
||||
@@ -262,7 +262,7 @@ void NavigationHandler::saveCameraStateToFile(const std::string& filepath) {
|
||||
glm::dquat q = _camera->rotationQuaternion();
|
||||
|
||||
ofs << "return {" << std::endl;
|
||||
ofs << " " << KeyFocus << " = " << "\"" << focusNode()->name() << "\""
|
||||
ofs << " " << KeyFocus << " = " << "\"" << focusNode()->identifier() << "\""
|
||||
<< "," << std::endl;
|
||||
ofs << " " << KeyPosition << " = {"
|
||||
<< std::to_string(p.x) << ", "
|
||||
|
||||
Reference in New Issue
Block a user