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

Method onTrackKeyframeSet

Gui/TrackerPanel.cpp:1465–1482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1463}
1464
1465void
1466TrackerPanel::onTrackKeyframeSet(const TrackMarkerPtr& marker,
1467 int key)
1468{
1469 TrackKeysMap::iterator found = _imp->keys.find(marker);
1470
1471 if ( found == _imp->keys.end() ) {
1472 TrackKeys k;
1473 k.userKeys.insert(key);
1474 _imp->keys[marker] = k;
1475 } else {
1476 _imp->updateTrackKeysInfoBar(key);
1477 std::pair<std::set<int>::iterator, bool> ret = found->second.userKeys.insert(key);
1478 if (ret.second && found->second.visible) {
1479 _imp->node.lock()->getNode()->getApp()->addUserKeyframeIndicator(key);
1480 }
1481 }
1482}
1483
1484void
1485TrackerPanel::onTrackKeyframeRemoved(const TrackMarkerPtr& marker,

Callers

nothing calls this directly

Calls 8

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
getAppMethod · 0.45
getNodeMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected