diff --git a/.rive_head b/.rive_head index 69fa08c..3622949 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -b9382846d3152fd87ee8ffc8e7a86ea2b5933a9b +236d788ea3cf8f184a026a1b69c14af60003169c diff --git a/lib/src/rive_core/animation/keyframe_id.dart b/lib/src/rive_core/animation/keyframe_id.dart index 07f71e7..9a688c3 100644 --- a/lib/src/rive_core/animation/keyframe_id.dart +++ b/lib/src/rive_core/animation/keyframe_id.dart @@ -9,21 +9,13 @@ class KeyFrameId extends KeyFrameIdBase { @override void apply(Core object, int propertyKey, double mix) { - // If mix is 0, we don't apply this keyframe value. This rule allows - // "mixing" of id values which are usually on/off - if (mix > 0) { - RiveCoreContext.setUint(object, propertyKey, value); - } + RiveCoreContext.setUint(object, propertyKey, value); } @override void applyInterpolation(Core object, int propertyKey, double currentTime, KeyFrameId nextFrame, double mix) { - // If mix is 0, we don't apply this keyframe value. This rule allows - // "mixing" of id values which are usually on/off - if (mix > 0) { - RiveCoreContext.setUint(object, propertyKey, value); - } + RiveCoreContext.setUint(object, propertyKey, value); } @override