diff options
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 92dac3f0257..672458e1db2 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1241,9 +1241,10 @@ static bool ui_drag_toggle_but_is_supported(const uiBut *but) * then just true or false for toggle buttons with more than 2 states. */ static int ui_drag_toggle_but_pushed_state(uiBut *but) { - if (but->icon) { + if (but->rnapoin.data == NULL && but->poin == NULL && but->icon) { /* Assume icon identifies a unique state, for buttons that - * work though functions callbacks. */ + * work though functions callbacks and don't have an boolean + * value that indicates the state. */ return but->icon + but->iconadd; } else if (ui_but_is_bool(but)) { |