Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-05-31 16:06:57 +0300
committerJulian Eisel <julian@blender.org>2022-06-13 12:15:39 +0300
commit9634f7fae35a88d295d47a4d89c87400cb67d5c6 (patch)
treeb064850c839fe56f16bca22b757ccf7523810a52 /source/blender/editors/interface/interface_query.cc
parent16f5d51109bce849dff5379c60360f271622ac0f (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_query.cc')
-rw-r--r--source/blender/editors/interface/interface_query.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_query.cc b/source/blender/editors/interface/interface_query.cc
index ea1fe3923e4..4fc8b08218e 100644
--- a/source/blender/editors/interface/interface_query.cc
+++ b/source/blender/editors/interface/interface_query.cc
@@ -64,12 +64,12 @@ bool ui_but_is_interactive_ex(const uiBut *but, const bool labeledit, const bool
if (but->type == UI_BTYPE_LABEL) {
if (for_tooltip) {
/* It's important labels are considered interactive for the purpose of showing tooltip. */
- if (but->dragpoin == nullptr && but->tip_func == nullptr) {
+ if (!ui_but_drag_is_draggable(but) && but->tip_func == nullptr) {
return false;
}
}
else {
- if (but->dragpoin == nullptr) {
+ if (!ui_but_drag_is_draggable(but)) {
return false;
}
}