New Geometry view option to show only visible sources

View setting to ignore mixing visibility applied to Geometry view, with a button to complement the workspace selection.
This commit is contained in:
Bruno Herbelin
2023-12-29 11:25:29 +01:00
parent 7606baa20b
commit caa3e4d07a
9 changed files with 62 additions and 29 deletions

View File

@@ -245,6 +245,7 @@ void Settings::Save(uint64_t runtime)
XMLElement *view = xmlDoc.NewElement( "View" );
view->SetAttribute("name", view_config.name.c_str());
view->SetAttribute("id", iter->first);
view->SetAttribute("ignore_mix", view_config.ignore_mix);
XMLElement *scale = xmlDoc.NewElement("default_scale");
scale->InsertEndChild( XMLElementFromGLM(&xmlDoc, view_config.default_scale) );
@@ -614,6 +615,7 @@ void Settings::Load()
int id = 0;
viewNode->QueryIntAttribute("id", &id);
application.views[id].name = viewNode->Attribute("name");
viewNode->QueryBoolAttribute("ignore_mix", &application.views[id].ignore_mix);
XMLElement* scaleNode = viewNode->FirstChildElement("default_scale");
if (scaleNode)