| 356 | } |
| 357 | |
| 358 | void |
| 359 | OfxParamToKnob::onKnobAnimationLevelChanged(ViewSpec /*view*/, |
| 360 | int /*dimension*/) |
| 361 | { |
| 362 | OFX::Host::Param::Instance* param = getOfxParam(); |
| 363 | |
| 364 | assert(param); |
| 365 | |
| 366 | AnimationLevelEnum l = getKnob()->getAnimationLevel(0); |
| 367 | |
| 368 | ///This assert might crash Natron when reading a project made with a version |
| 369 | ///of Natron prior to 0.96 when file params still had keyframes. |
| 370 | //assert(l == eAnimationLevelNone || getCanAnimate()); |
| 371 | param->getProperties().setIntProperty(kOfxParamPropIsAnimating, l != eAnimationLevelNone); |
| 372 | param->getProperties().setIntProperty(kOfxParamPropIsAutoKeying, l == eAnimationLevelInterpolatedValue); |
| 373 | } |
| 374 | |
| 375 | void |
| 376 | OfxParamToKnob::onChoiceMenuReset() |
nothing calls this directly
no test coverage detected