Page MenuHome

Fix T73922: Setting rect to 0 size causes curvemapping widget to disappear
AbandonedPublic

Authored by Hans Goudey (HooglyBoogly) on Sep 8 2020, 7:08 PM.

Details

Summary

If you go into the clipping dropdown in the curvemapping widget and set change set the min or max to equal each other, the widget disapears.

This patch sets the hardmin and hardmax for those buttons to create a minimum
size for the cliprect on each axis.

This fix is verging on a bit hacky, but it wasn't clear to me that other methods
would be better. Another way to do it would be to validate the rect in
BKE_curvemapping_changed, but that brings up some issues as well.
It seems simpler to do it right where the values are already set.

Diff Detail

Repository
rB Blender
Branch
fix-cumap-cliprect-0-size (branched from master)
Build Status
Buildable 10061
Build 10061: arc lint + arc unit