MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / ClearPatterns

Method ClearPatterns

Source/FrameEditor.cpp:1014–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012}
1013
1014void CFrameEditor::ClearPatterns(const CFrameSelection &Sel) // // //
1015{
1016 CSongView *pSongView = m_pView->GetSongView();
1017 for (auto [b, e] = CFrameIterator::FromSelection(Sel, *pSongView); b != e; ++b)
1018 for (int c = b.m_iChannel; c < e.m_iChannel; ++c)
1019 pSongView->GetPatternOnFrame(c, b.m_iFrame) = CPatternData { };
1020}
1021
1022bool CFrameEditor::InputEnabled() const
1023{

Callers 1

UndoMethod · 0.80

Calls 1

GetSongViewMethod · 0.80

Tested by

no test coverage detected