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

Method onTrackKeyframeRemoved

Gui/TrackerPanel.cpp:1484–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482}
1483
1484void
1485TrackerPanel::onTrackKeyframeRemoved(const TrackMarkerPtr& marker,
1486 int key)
1487{
1488 TrackKeysMap::iterator found = _imp->keys.find(marker);
1489
1490 if ( found == _imp->keys.end() ) {
1491 return;
1492 }
1493 std::set<int>::iterator it2 = found->second.userKeys.find(key);
1494 if ( it2 != found->second.userKeys.end() ) {
1495 found->second.userKeys.erase(it2);
1496 if (found->second.visible) {
1497 AppInstancePtr app = _imp->node.lock()->getNode()->getApp();
1498 _imp->updateTrackKeysInfoBar( app->getTimeLine()->currentFrame() );
1499 app->removeUserKeyFrameIndicator(key);
1500 }
1501 }
1502}
1503
1504void
1505TrackerPanel::onTrackAllKeyframesRemoved(const TrackMarkerPtr& marker)

Callers

nothing calls this directly

Calls 10

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
getAppMethod · 0.45
getNodeMethod · 0.45
lockMethod · 0.45
currentFrameMethod · 0.45
getTimeLineMethod · 0.45

Tested by

no test coverage detected