diff options
author | Julian Eisel <julian@blender.org> | 2020-09-21 14:08:19 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-21 14:15:43 +0300 |
commit | 88a9d82bbbbd4b1a67160a06de03535593e9bac8 (patch) | |
tree | b60209fdcf5bfcc606a5dce98492859be98897eb /source/blender/editors/interface/interface.c | |
parent | 92454ae100a1bf8c1f41da5cd1abac27250474df (diff) |
Cleanup: Remove weird assert in button handling
The function this was in already checks the conditions under which it
can operate (as it should). No need to force the caller to do these
(quite specific) checks, the function can just do nothing if the button
doesn't need these operations.
Otherwise we'd have to always execute these checks before calling, which
makes calling it a hassle, makes the code harder to follow and generally
harder to maintain (what if the conditions change?).
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 5e17354f3f7..2cb58c92449 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3342,9 +3342,6 @@ void ui_but_range_set_soft(uiBut *but) but->softmax = max_ff(but->softmax, value); } } - else { - BLI_assert(0); - } } /* ******************* Free ********************/ |