Skip to content

Improper interpolation of bool type #1825

Closed

Description

@Svarov-RZM

Issue description

The issue is that 'bool' values take three waypoints to change their state. Let's describe the following animation: the circle layer has its color wrapped into a 'switch' converter. We want the color to be blue at 0s and then change it to green at 1s. Should be easily accomplished with 2 waypoints: 'switch-off' at 0s and 'switch-on' at 1s. But that's not going to work because as soon as time changes to 1f the boolean value will change to 'true'. As a workaround we need three waypoints: 'false' at 0s, 'false' at 23f and 'true' at 1s which is counter-intuitive and cumbersome.
BoolInterpolationBug

Note: The interpolation actually shouldn't matter for boolean values, because, you know, they only have two states. So any interpolation should be treated as constant.

Affected versions

Seems to be all. Moreover, there's a duplicate issue here: #658
It didn't get any attention, so I am making a version with more detailed description and example file:
BoolInterpolationBug.zip

I hope that it at least gets 'confirmed' status so it will be addressed somewhere in the future.

Activity

  1. added a commit that references this issue on Nov 8, 2020
    883803a
  2. Svarov-RZM commented on Nov 11, 2020

    @Svarov-RZM
    ContributorAuthor

    Alright, I've tested it and all seems to be good. Boolean values now change their state on waypoints and not affected by any interpolation type. Would be nice to see this merged into the upcoming stable version. Thanks @rodolforg.

  3. added a commit that references this issue on Nov 12, 2020
    23bf66a
  4. added a commit that references this issue on Dec 30, 2020
    c3e33b3
  5. added a commit that references this issue on Feb 28, 2021
    7a7d108
  6. added a commit that references this issue on Apr 20, 2021
    ec26321
  7. rodolforg commented on May 9, 2021

    @rodolforg
    Contributor

    This issue is already fixed in v1.4.1.

  8. added this to the v1.4.1 milestone on May 9, 2021
  9. added 2 commits that reference this issue on Aug 9, 2021
    d24b041
    013ee8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions