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

Method onTrackAboutToClone

Gui/TrackerPanel.cpp:1168–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1166}
1167
1168void
1169TrackerPanel::onTrackAboutToClone(const TrackMarkerPtr& marker)
1170{
1171 TrackKeysMap::iterator found = _imp->keys.find(marker);
1172
1173 if ( found != _imp->keys.end() ) {
1174 std::list<int> keys, userKeys;
1175 for (std::set<int>::iterator it = found->second.userKeys.begin(); it != found->second.userKeys.end(); ++it) {
1176 userKeys.push_back(*it);
1177 }
1178 for (std::set<double>::iterator it = found->second.centerKeys.begin(); it != found->second.centerKeys.end(); ++it) {
1179 keys.push_back(*it);
1180 }
1181
1182 if (!found->second.visible) {
1183 _imp->setVisibleItemKeyframes(keys, false, false);
1184 _imp->setVisibleItemUserKeyframes(userKeys, false, false);
1185 ///Hack, making the visible flag to true, for the onTrackCloned() function
1186 found->second.visible = true;
1187 }
1188 found->second.userKeys.clear();
1189 found->second.centerKeys.clear();
1190 }
1191}
1192
1193void
1194TrackerPanel::onTrackCloned(const TrackMarkerPtr& marker)

Callers

nothing calls this directly

Calls 7

findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
push_backMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected