Docking: Fix unused variable warning. (#3135)

docking
Patryk Czachurski 5 years ago committed by GitHub
parent 013013737f
commit 36ac557df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14222,6 +14222,7 @@ void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_persi
if (want_removal) if (want_removal)
{ {
const ImGuiID backup_dock_id = window->DockId; const ImGuiID backup_dock_id = window->DockId;
IM_UNUSED(backup_dock_id);
DockContextProcessUndockWindow(ctx, window, clear_persistent_docking_references); DockContextProcessUndockWindow(ctx, window, clear_persistent_docking_references);
if (!clear_persistent_docking_references) if (!clear_persistent_docking_references)
IM_ASSERT(window->DockId == backup_dock_id); IM_ASSERT(window->DockId == backup_dock_id);

Loading…
Cancel
Save