diff options
author | Julian Eisel <julian@blender.org> | 2022-05-31 16:06:57 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-06-13 12:15:39 +0300 |
commit | 9634f7fae35a88d295d47a4d89c87400cb67d5c6 (patch) | |
tree | b064850c839fe56f16bca22b757ccf7523810a52 /source/blender/editors/interface/interface_widgets.c | |
parent | 16f5d51109bce849dff5379c60360f271622ac0f (diff) |
Cleanup: Move dragging code for buttons to own file
Moves code for managing dragging data from buttons to a separate file.
This way all this closely related code is in one location, making it
easier to see how it all relates, and easier to find.
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 3777ff31b26..10096f054b3 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -1419,7 +1419,7 @@ static void widget_draw_icon( const bool has_theme = UI_icon_get_theme_color(icon, color); /* to indicate draggable */ - if (but->dragpoin && (but->flag & UI_ACTIVE)) { + if (ui_but_drag_is_draggable(but) && (but->flag & UI_ACTIVE)) { UI_icon_draw_ex(xs, ys, icon, aspect, 1.25f, 0.0f, color, has_theme); } else if ((but->flag & (UI_ACTIVE | UI_SELECT | UI_SELECT_DRAW))) { |