vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.05k stars 87 forks source link

VOXEDIT: second, third, ... gizmo no longer acccepts input after switching between scene and edit mode #302

Closed mgerhardy closed 11 months ago

mgerhardy commented 12 months ago

... only the first gizmo is still responding - maybe related to multi-gizmo support of imguizmo - or maybe I'm doing something stupid - not yet sure.

mgerhardy commented 11 months ago

simplified version of my imguizmo usage is this:

    ImGuizmo::SetID(_id);
    ImGuizmo::BeginFrame();
    const ImVec2 &windowPos = ImGui::GetWindowPos();
    ImGuizmo::Enable(_renderContext.sceneMode || _modelGizmo->boolVal());
    ImGuizmo::AllowAxisFlip(_gizmoAllowAxisFlip->boolVal());
    ImGuizmo::SetDrawlist();
    ImGuizmo::SetRect(windowPos.x, windowPos.y + headerSize, size.x, size.y);
    ImGuizmo::SetOrthographic(orthographic);
    renderSceneAndModelGizmo(camera);
    renderCameraManipulator(camera, headerSize);
mgerhardy commented 11 months ago

Might also not be related to multi-gizmo - but to this one: https://github.com/CedricGuillemet/ImGuizmo/issues/267

mgerhardy commented 11 months ago

not reproducible anymore... will close it and re-open it if it happens again.