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

Method reflectAnimationLevel

Gui/KnobGuiChoice.cpp:416–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void
417KnobGuiChoice::reflectAnimationLevel(int /*dimension*/,
418 AnimationLevelEnum level)
419{
420 int value;
421
422 switch (level) {
423 case eAnimationLevelNone:
424 value = 0;
425 break;
426 case eAnimationLevelInterpolatedValue:
427 value = 1;
428 break;
429 case eAnimationLevelOnKeyframe:
430 value = 2;
431 break;
432 default:
433 value = 0;
434 break;
435 }
436 if ( value != _comboBox->getAnimation() ) {
437 _comboBox->setAnimation(value);
438 }
439}
440
441void
442KnobGuiChoice::_hide()

Callers

nothing calls this directly

Calls 2

getAnimationMethod · 0.45
setAnimationMethod · 0.45

Tested by

no test coverage detected