mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Relaxed internal assert in MarkItemEdited() some more. (#8997)
Amende7a734f78d,5a2b1e8482
This commit is contained in:
parent
bad5ee167b
commit
702cc9993a
2 changed files with 3 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ Other Changes:
|
||||||
using a shared ImFontAtlas, leading standard backends to not properly
|
using a shared ImFontAtlas, leading standard backends to not properly
|
||||||
free texture resources. (#8975) [@icrashstuff]
|
free texture resources. (#8975) [@icrashstuff]
|
||||||
- Demo: fixed layout issue in "Layout & Scrolling -> Scrolling" section.
|
- Demo: fixed layout issue in "Layout & Scrolling -> Scrolling" section.
|
||||||
|
- Misc: Relaxed internal assert in MarkItemEdited() to allow for more use cases. (#8997)
|
||||||
- Misc: Debuggers: added type formatters for the LLDB debuggers (e.g. Xcode,
|
- Misc: Debuggers: added type formatters for the LLDB debuggers (e.g. Xcode,
|
||||||
Android Studio & more) to provide nicer display for ImVec2, ImVec4, ImVector etc.
|
Android Studio & more) to provide nicer display for ImVec2, ImVec4, ImVector etc.
|
||||||
See misc/debuggers/ for details. (#8950) [@mentlerd]
|
See misc/debuggers/ for details. (#8950) [@mentlerd]
|
||||||
|
|
|
||||||
|
|
@ -4639,7 +4639,8 @@ void ImGui::MarkItemEdited(ImGuiID id)
|
||||||
|
|
||||||
// We accept a MarkItemEdited() on drag and drop targets (see https://github.com/ocornut/imgui/issues/1875#issuecomment-978243343)
|
// We accept a MarkItemEdited() on drag and drop targets (see https://github.com/ocornut/imgui/issues/1875#issuecomment-978243343)
|
||||||
// We accept 'ActiveIdPreviousFrame == id' for InputText() returning an edit after it has been taken ActiveId away (#4714)
|
// We accept 'ActiveIdPreviousFrame == id' for InputText() returning an edit after it has been taken ActiveId away (#4714)
|
||||||
IM_ASSERT(g.DragDropActive || g.ActiveId == id || g.ActiveId == 0 || g.ActiveIdPreviousFrame == id || (g.CurrentMultiSelect != NULL && g.BoxSelectState.IsActive));
|
// FIXME: This assert is getting a bit meaningless over time. It helped detect some unusual use cases but eventually it is becoming an unnecessary restriction.
|
||||||
|
IM_ASSERT(g.DragDropActive || g.ActiveId == id || g.ActiveId == 0 || g.ActiveIdPreviousFrame == id || g.NavJustMovedToId || (g.CurrentMultiSelect != NULL && g.BoxSelectState.IsActive));
|
||||||
|
|
||||||
//IM_ASSERT(g.CurrentWindow->DC.LastItemId == id);
|
//IM_ASSERT(g.CurrentWindow->DC.LastItemId == id);
|
||||||
g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited;
|
g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue