Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Curve mapper": respect "use clipping" option. #4864

Merged
merged 4 commits into from
Jan 8, 2023
Merged

Commits on Jan 8, 2023

  1. "Curve mapper": respect "use clipping" option.

    Earlier we used
    https://docs.blender.org/api/current/bpy.types.CurveMapping.html#bpy.types.CurveMapping.evaluate
    method to calculate the resulting value of mapper, in hope that it
    respects clipping settings automatically. However, it appears to do not.
    As a result, if the curve goes, for example, beyond [0;1] by Y, the
    result of the curve mapper could go negative even though "use clipping"
    option in the curve widget is enabled.
    
    This change adds explicit clipping to evaluate function. If someone
    happened to adapt previous behaviour, they can just untick the "use
    clipping" checkbox in the curve widget settings.
    portnov committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    25aa070 View commit details
    Browse the repository at this point in the history
  2. Update documentation.

    portnov committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    79e835c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    434f2eb View commit details
    Browse the repository at this point in the history
  4. Fix dimensions_svg.rst.

    portnov committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    be481cc View commit details
    Browse the repository at this point in the history