@@ -406,7 +406,7 @@ void processInputEvents() {
406406 if (dragDistSinceLastRelease < dragIgnoreThreshold) {
407407 ImVec2 p = ImGui::GetMousePos ();
408408 PickResult pickResult = queryPickAtScreenCoords (glm::vec2{p.x , p.y });
409- pick:: setSelection (pickResult);
409+ setSelection (pickResult);
410410 }
411411
412412 // Reset the drag distance after any release
@@ -415,7 +415,7 @@ void processInputEvents() {
415415 // Clear pick
416416 if (ImGui::IsMouseReleased (1 )) {
417417 if (dragDistSinceLastRelease < dragIgnoreThreshold) {
418- pick:: resetSelection ();
418+ resetSelection ();
419419 }
420420 dragDistSinceLastRelease = 0.0 ;
421421 }
@@ -755,20 +755,19 @@ void buildStructureGui() {
755755}
756756
757757void buildPickGui () {
758- if (pick:: haveSelection ()) {
758+ if (haveSelection ()) {
759759
760760 ImGui::SetNextWindowPos (ImVec2 (view::windowWidth - (rightWindowsWidth + imguiStackMargin),
761761 2 * imguiStackMargin + lastWindowHeightUser));
762762 ImGui::SetNextWindowSize (ImVec2 (rightWindowsWidth, 0 .));
763763
764764 ImGui::Begin (" Selection" , nullptr );
765- PickResult selection = pick:: getSelection ();
765+ PickResult selection = getSelection ();
766766
767767
768768 ImGui::Text (" screen coordinates: (%.2f,%.2f) depth: %g" , selection.screenCoords .x , selection.screenCoords .y ,
769769 selection.depth );
770- ImGui::Text (" world position: <%g, %g, %g>" , selection.position .x , selection.position .y ,
771- selection.position .z );
770+ ImGui::Text (" world position: <%g, %g, %g>" , selection.position .x , selection.position .y , selection.position .z );
772771 ImGui::NewLine ();
773772
774773 ImGui::TextUnformatted ((selection.structureType + " : " + selection.structureName ).c_str ());
@@ -1122,7 +1121,7 @@ void removeStructure(std::string type, std::string name, bool errorIfAbsent) {
11221121 for (auto & g : state::groups) {
11231122 g.second ->removeChildStructure (*s);
11241123 }
1125- pick:: resetSelectionIfStructure (s);
1124+ resetSelectionIfStructure (s);
11261125 sMap .erase (s->name );
11271126 updateStructureExtents ();
11281127 return ;
@@ -1183,7 +1182,7 @@ void removeAllStructures() {
11831182 }
11841183
11851184 requestRedraw ();
1186- pick:: resetSelection ();
1185+ resetSelection ();
11871186}
11881187
11891188
0 commit comments