Skip to content

Restrict the blend weight values to the range [0, 1] #2025

@pavly-gerges

Description

@pavly-gerges

According to the discussion on PR #2022, @Ali-RS suggests it would be better to restrict the input to the range 0 to 1 only by throwing an IllegalArgumentException with a message denoting an out-of-range number to avoid extrapolation and unexpected behaviors of negative numbers, the same as BlendableAction#setMaxTransitionWeight(double).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions