diff options
author | Julian Eisel <julian@blender.org> | 2020-09-09 13:06:11 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-09 13:18:37 +0300 |
commit | dbec51109bbd3a6143bc45c6faa3908142f9da46 (patch) | |
tree | 69dcac9b5bdc9b69a29ece4fbce3c1665ad360b4 /source/blender/editors/interface/interface.c | |
parent | d51c8f78ff8a210675dae44048156c23e3793508 (diff) |
Fix T80613: Assert in UI_but_number_precision_set
-1 is a valid value to pass as RNA float precision. We let the UI code
figure out an appropriate precision then. So don't fail the assert if
-1 is passed.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index bbe097b5c79..ea64fb9cfcd 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -6762,7 +6762,8 @@ void UI_but_number_precision_set(uiBut *but, float precision) BLI_assert(but->type == UI_BTYPE_NUM); but_number->precision = precision; - BLI_assert(precision > -1); + /* -1 is a valid value, UI code figures out an appropriate precision then. */ + BLI_assert(precision > -2); } /** |