diff options
author | Julian Eisel <julian@blender.org> | 2022-03-03 17:02:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-03 17:04:45 +0300 |
commit | 544bd0c353cf54c28b9bb3e0714f17b16a257731 (patch) | |
tree | 5d24be665696bcee4221bba433b3a5eeded870be /source/blender/editors/interface/interface_handlers.c | |
parent | 1b863041c9746029bd6d867539550043944822d9 (diff) |
Cleanup: Remove redundant drag image size parameters
Just use the image-buffer size and the already provided scale to
determine the size, not the button size (which would always have to
match the scaled image-buffer size or it would give unexpected results).
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index e0b64dcd4d6..80fef93faf8 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2132,11 +2132,7 @@ static bool ui_but_drag_init(bContext *C, but->dragpoin = NULL; if (but->imb) { - WM_event_drag_image(drag, - but->imb, - but->imb_scale, - BLI_rctf_size_x(&but->rect), - BLI_rctf_size_y(&but->rect)); + WM_event_drag_image(drag, but->imb, but->imb_scale); } /* Special feature for assets: We add another drag item that supports multiple assets. It |