///Refresh curves of target animatable static void RefreshCurvesOf(IAnimatableData animatable) { CurveRenderer curveRenderer = null; if (cache.TryGetValue(animatable, out curveRenderer)) { curveRenderer.RefreshCurves(); return; } if (animatable is AnimationDataCollection) { var data = (AnimationDataCollection)animatable; if (data.animatedParameters != null) { foreach (var animParam in data.animatedParameters) { if (cache.TryGetValue(animParam, out curveRenderer)) { curveRenderer.RefreshCurves(); } } } } }