Skip to content

Commit

Permalink
VOXEDIT: fixed imgui assert
Browse files Browse the repository at this point in the history
Assertion failure at EndDisabledOverrideReenable (/home/mgerhardy/dev/oss/engine/src/modules/ui/dearimgui/imgui.cpp:8146), triggered 1 time:
  'g.DisabledStackSize > 0'
  • Loading branch information
mgerhardy committed Jun 15, 2024
1 parent 9dc8382 commit beab4ab
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/tools/voxedit/modules/voxedit-ui/SceneGraphPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@ void SceneGraphPanel::recursiveAddNodes(video::Camera &camera, const scenegraph:
ImGui::TableNextColumn();
const core::String &visibleId = core::string::format("##visible-node-%i", nodeId);
bool visible = node.visible();
ui::ScopedStyle style;
if (_hideInactive->boolVal()) {
style.disableItem();
}
if (ImGui::Checkbox(visibleId.c_str(), &visible)) {
_sceneMgr->nodeSetVisible(nodeId, visible);
{
ui::ScopedStyle style;
if (_hideInactive->boolVal()) {
style.disableItem();
}
if (ImGui::Checkbox(visibleId.c_str(), &visible)) {
_sceneMgr->nodeSetVisible(nodeId, visible);
}
}
if (_hideInactive->boolVal()) {
ImGui::TooltipTextUnformatted(_("Disabled because inactive nodes are hidden and the active node is always visible"));
Expand Down

0 comments on commit beab4ab

Please sign in to comment.