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

Method unionFrameRangeWith

Engine/Project.cpp:2698–2713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2696}
2697
2698void
2699Project::unionFrameRangeWith(int first,
2700 int last)
2701{
2702 int curFirst, curLast;
2703 bool mustSet = !_imp->frameRange->hasModifications() && first != last;
2704
2705 curFirst = _imp->frameRange->getValue(0);
2706 curLast = _imp->frameRange->getValue(1);
2707 curFirst = !mustSet ? std::min(first, curFirst) : first;
2708 curLast = !mustSet ? std::max(last, curLast) : last;
2709 beginChanges();
2710 _imp->frameRange->setValue(curFirst, ViewSpec::all(), 0);
2711 _imp->frameRange->setValue(curLast, ViewSpec::all(), 1);
2712 endChanges();
2713}
2714
2715void
2716Project::recomputeFrameRangeFromReaders()

Callers 1

Calls 5

maxFunction · 0.85
allFunction · 0.85
hasModificationsMethod · 0.80
getValueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected