Skip to content

Commit 71eb0c4

Browse files
committed
Merge branch 'master' of ssh://github.com/nmwsharp/polyscope into better_transform_gizmo
2 parents 6deaee9 + b38da6d commit 71eb0c4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/polyscope.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -699,11 +699,10 @@ void buildPolyscopeGui() {
699699
ensureWindowWidthsSet();
700700

701701
// Create window
702-
static bool showPolyscopeWindow = true;
703702
ImGui::SetNextWindowPos(ImVec2(internal::imguiStackMargin, internal::imguiStackMargin));
704703
ImGui::SetNextWindowSize(ImVec2(internal::leftWindowsWidth, 0.));
705704

706-
ImGui::Begin("Polyscope", &showPolyscopeWindow);
705+
ImGui::Begin("Polyscope", nullptr);
707706

708707
if (ImGui::Button("Reset View")) {
709708
view::flyToHomeView();
@@ -861,13 +860,11 @@ void buildStructureGui() {
861860
ensureWindowWidthsSet();
862861

863862
// Create window
864-
static bool showStructureWindow = true;
865-
866863
ImGui::SetNextWindowPos(
867864
ImVec2(internal::imguiStackMargin, internal::lastWindowHeightPolyscope + 2 * internal::imguiStackMargin));
868865
ImGui::SetNextWindowSize(ImVec2(internal::leftWindowsWidth, view::windowHeight - internal::lastWindowHeightPolyscope -
869866
3 * internal::imguiStackMargin));
870-
ImGui::Begin("Structures", &showStructureWindow);
867+
ImGui::Begin("Structures", nullptr);
871868

872869
// only show groups if there are any
873870
if (state::groups.size() > 0) {

0 commit comments

Comments
 (0)