void Canvas::stopPlayback() { if (m_bIsPlaying) { m_PlaybackEndSignal.emit(); m_pRootNode->disconnect(true); m_pRootNode = CanvasNodePtr(); m_IDMap.clear(); m_bIsPlaying = false; } }
void Canvas::stopPlayback(bool bIsAbort) { if (m_bIsPlaying) { if (!bIsAbort) { m_PlaybackEndSignal.emit(); } m_pRootNode->disconnect(true); m_pRootNode = CanvasNodePtr(); m_IDMap.clear(); m_bIsPlaying = false; m_pVertexArray = VertexArrayPtr(); } }