| 1166 | } |
| 1167 | |
| 1168 | void |
| 1169 | TrackerPanel::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 | |
| 1193 | void |
| 1194 | TrackerPanel::onTrackCloned(const TrackMarkerPtr& marker) |
nothing calls this directly
no test coverage detected