MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / removeUserMultipleKeyframeIndicator

Method removeUserMultipleKeyframeIndicator

Gui/GuiAppInstance.cpp:1497–1513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495}
1496
1497void
1498GuiAppInstance::removeUserMultipleKeyframeIndicator(const std::list<SequenceTime> & keys,
1499 bool emitSignal)
1500{
1501 ///runs only in the main thread
1502 assert( QThread::currentThread() == qApp->thread() );
1503
1504 for (std::list<SequenceTime>::const_iterator it = keys.begin(); it != keys.end(); ++it) {
1505 std::list<SequenceTime>::iterator it2 = std::find(_imp->timelineUserKeys.begin(), _imp->timelineUserKeys.end(), *it);
1506 if ( it2 != _imp->timelineUserKeys.end() ) {
1507 _imp->timelineUserKeys.erase(it2);
1508 }
1509 }
1510 if (!keys.empty() && emitSignal) {
1511 Q_EMIT keyframeIndicatorsChanged();
1512 }
1513}
1514
1515void
1516GuiAppInstance::getUserKeyframes(std::list<SequenceTime>* keys) const

Calls 4

emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected