File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ v0.9.3 (WIP):
2
2
3
3
BUGFIX: Canvas: Ensure SentinelDrawCallback cleanup (#255)
4
4
5
+ BUGFIX: Editor: Don't call Reasume/Suspend on invisible canvas (#255)
6
+
5
7
6
8
v0.9.2 (2023-09-01):
7
9
Original file line number Diff line number Diff line change @@ -1965,7 +1965,8 @@ void ed::EditorContext::Suspend(SuspendFlags flags)
1965
1965
IM_ASSERT (m_DrawList != nullptr && " Suspend was called outiside of Begin/End." );
1966
1966
auto lastChannel = m_DrawList->_Splitter ._Current ;
1967
1967
m_DrawList->ChannelsSetCurrent (m_ExternalChannel);
1968
- m_Canvas.Suspend ();
1968
+ if (m_IsCanvasVisible)
1969
+ m_Canvas.Suspend ();
1969
1970
m_DrawList->ChannelsSetCurrent (lastChannel);
1970
1971
if ((flags & SuspendFlags::KeepSplitter) != SuspendFlags::KeepSplitter)
1971
1972
ImDrawList_SwapSplitter (m_DrawList, m_Splitter);
@@ -1978,7 +1979,8 @@ void ed::EditorContext::Resume(SuspendFlags flags)
1978
1979
ImDrawList_SwapSplitter (m_DrawList, m_Splitter);
1979
1980
auto lastChannel = m_DrawList->_Splitter ._Current ;
1980
1981
m_DrawList->ChannelsSetCurrent (m_ExternalChannel);
1981
- m_Canvas.Resume ();
1982
+ if (m_IsCanvasVisible)
1983
+ m_Canvas.Resume ();
1982
1984
m_DrawList->ChannelsSetCurrent (lastChannel);
1983
1985
}
1984
1986
You can’t perform that action at this time.
0 commit comments