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:
Alexander Bock
2018-03-16 09:21:29 -04:00
committed by GitHub
parent 7a93a4fa37
commit db7ae7e384
234 changed files with 2921 additions and 1676 deletions

View File

@@ -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) << ", "