Skip to content

Commit

Permalink
feat: add mouse position to plot context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocq committed Dec 24, 2024
1 parent 773dc26 commit 9acd29c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions implot3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,8 @@ void ShowPlotContextMenu(ImPlot3DPlot& plot) {
ImGui::EndDisabled();
if (ImGui::MenuItem("Clip", nullptr, !ImHasFlag(plot.Flags, ImPlot3DFlags_NoClip)))
ImFlipFlag(plot.Flags, ImPlot3DFlags_NoClip);
if (ImGui::MenuItem("Mouse Position", nullptr, !ImHasFlag(plot.Flags, ImPlot3DFlags_NoMouseText)))
ImFlipFlag(plot.Flags, ImPlot3DFlags_NoMouseText);
ImGui::EndMenu();
}
}
Expand Down

0 comments on commit 9acd29c

Please sign in to comment.