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

Method reflectAnimationLevel

Gui/KnobGuiValue.cpp:848–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846} // KnobGuiValue::updateGUI
847
848void
849KnobGuiValue::reflectAnimationLevel(int dimension,
850 AnimationLevelEnum level)
851{
852 int value;
853
854 switch (level) {
855 case eAnimationLevelNone:
856 value = 0;
857 break;
858 case eAnimationLevelInterpolatedValue:
859 value = 1;
860 break;
861 case eAnimationLevelOnKeyframe:
862 value = 2;
863 break;
864 default:
865 value = 0;
866 break;
867 }
868 if ( value != _imp->spinBoxes[dimension].first->getAnimation() ) {
869 _imp->spinBoxes[dimension].first->setAnimation(value);
870 }
871}
872
873void
874KnobGuiValue::onSliderValueChanged(const double d)

Callers

nothing calls this directly

Calls 2

getAnimationMethod · 0.45
setAnimationMethod · 0.45

Tested by

no test coverage detected