Page MenuHome

Hide ratio when using error margin mode in decimate keyframes operator
ClosedPublic

Authored by Colin Basnett (cmbasnett) on Oct 22 2022, 8:43 AM.

Details

Summary

This fixes a bug in the function that determines what properties to show on the Decimate Keyframes operator.

Before the fix, the "Remove" (i.e., factor) slider was visible no matter what "Mode" was being used. This meant that the slider was visible and modifiable when it had no effect, creating confusion.

BeforeAfter

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 24380
Build 24380: arc lint + arc unit

Event Timeline

Colin Basnett (cmbasnett) requested review of this revision.Oct 22 2022, 8:43 AM
Colin Basnett (cmbasnett) created this revision.

Renamed "Remove" slider to "Ratio" in decimate keyframes operator

Sybren A. Stüvel (sybren) requested changes to this revision.Oct 22 2022, 10:08 AM
Sybren A. Stüvel (sybren) added inline comments.
source/blender/editors/space_graph/graph_slider_ops.c
535

This change should be in a different patch. Changing the label of this property is quite a different change than fixing when it'll show up. Also I don't think this change would be accepted, because "Remove" is more explicit -- a "remove" of 75% is clear, but a "ratio" of 75% is ambiguous (can be the same, but could also mean to keep 75%).

This revision now requires changes to proceed.Oct 22 2022, 10:08 AM

Revert "Renamed "Remove" slider to "Ratio" in decimate keyframes operator"

This revision is now accepted and ready to land.Nov 8 2022, 10:44 AM