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

Method clearAllAnimationForSelection

Gui/MultiInstancePanel.cpp:2203–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203void
2204TrackerPanelV1::clearAllAnimationForSelection()
2205{
2206 std::list<Node*> selectedInstances;
2207
2208 getSelectedInstances(&selectedInstances);
2209 for (std::list<Node*>::const_iterator it = selectedInstances.begin(); it != selectedInstances.end(); ++it) {
2210 const std::vector<KnobIPtr> & knobs = (*it)->getKnobs();
2211 for (U32 i = 0; i < knobs.size(); ++i) {
2212 for (int dim = 0; dim < knobs[i]->getDimension(); ++dim) {
2213 knobs[i]->removeAnimation(ViewSpec::all(), dim);
2214 }
2215 }
2216 }
2217}
2218
2219void
2220TrackerPanelV1::clearBackwardAnimationForSelection()

Callers

nothing calls this directly

Calls 6

allFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
getDimensionMethod · 0.45
removeAnimationMethod · 0.45

Tested by

no test coverage detected