Skip to content

Commit

Permalink
run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Mar 14, 2024
1 parent 9df7683 commit 1cd1eb8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/polyscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ void pushContext(std::function<void()> callbackFunction, bool drawDefaultUI) {
// Create a new context and push it on to the stack
ImGuiContext* newContext = ImGui::CreateContext(render::engine->getImGuiGlobalFontAtlas());
ImGuiIO& oldIO = ImGui::GetIO(); // used to GLFW + OpenGL data to the new IO object
#ifdef IMGUI_HAS_DOCK
#ifdef IMGUI_HAS_DOCK
ImGuiPlatformIO& oldPlatformIO = ImGui::GetPlatformIO();
#endif
#endif
ImGui::SetCurrentContext(newContext);
#ifdef IMGUI_HAS_DOCK
#ifdef IMGUI_HAS_DOCK
// Propagate GLFW window handle to new context
ImGui::GetMainViewport()->PlatformHandle = oldPlatformIO.Viewports[0]->PlatformHandle;
#endif
#endif
ImGui::GetIO().BackendPlatformUserData = oldIO.BackendPlatformUserData;
ImGui::GetIO().BackendRendererUserData = oldIO.BackendRendererUserData;

Expand Down Expand Up @@ -711,7 +711,7 @@ void buildStructureGui() {
int32_t skipCount = 0;
for (auto& x : structureMap) {
ImGui::SetNextItemOpen(structureMap.size() <= 8,
ImGuiCond_FirstUseEver); // closed by default if more than 8
ImGuiCond_FirstUseEver); // closed by default if more than 8

if (structuresToSkip.find(x.second.get()) != structuresToSkip.end()) {
skipCount++;
Expand Down

0 comments on commit 1cd1eb8

Please sign in to comment.