CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

Fixes for using BeginChildFrame() obsoleted in v1.90 #334

Closed ocornut closed 1 month ago

ocornut commented 1 month ago

This allows compiling with dear imgui with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. This will requires 1.90+ (released Nov 2023): Ref: https://github.com/ocornut/imgui/commit/cdbc21a191e4d3622881ed9d9da29e3a463f0a35

If you wish to support versions of dear imgui older than 1.90 with latest ImGuizmo, you can add:

#if IMGUI_VERSION_NUM < 18998
   ImGui::BeginChildFrame(id, size);
#else
   ImGui::BeginChild(id, size, ImGuiChildFlags_FrameStyle);
#endif

On the eight modified lines.