Skip to content

Commit

Permalink
VOXEDIT: improved slice checkbox tooltip handling
Browse files Browse the repository at this point in the history
see issue #394
  • Loading branch information
mgerhardy committed Nov 10, 2024
1 parent 7718166 commit 4e4263c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/voxedit/modules/voxedit-ui/Viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ void Viewport::renderViewportImage(const glm::ivec2 &contentSize) {
}

void Viewport::renderCursorDetails() const {
if (_viewportUIElementHovered) {
return;
}
const ModifierFacade &modifier = _sceneMgr->modifier();
const int cursorDetailsLevel = _cursorDetails->intVal();
if (cursorDetailsLevel == 0) {
Expand Down Expand Up @@ -251,6 +254,7 @@ bool Viewport::renderSlicer(const glm::ivec2 &contentSize) {
changed = true;
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip(_("Slice view"));
_viewportUIElementHovered = true;
}
if (sliceActive && ImGui::VSliderInt("##slicepos", {ImGui::Size(3.0f), (float)contentSize.y}, &mins.y,
Expand Down

0 comments on commit 4e4263c

Please sign in to comment.