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 @@ -8,6 +8,8 @@ v0.10.0 (WIP):
8
8
9
9
BUGFIX: Canvas: Ensure SentinelDrawCallback cleanup (#255)
10
10
11
+ BUGFIX: Editor: Don't call Reasume/Suspend on invisible canvas (#255)
12
+
11
13
12
14
v0.9.2 (2023-09-01):
13
15
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