forked from blender/blender
main sync #3
@ -5809,7 +5809,6 @@ void uiLayoutSetTooltipFunc(uiLayout *layout,
|
||||
if (copy_arg != nullptr && arg_used) {
|
||||
arg = copy_arg(arg);
|
||||
}
|
||||
arg_used = true;
|
||||
|
||||
if (item->type == ITEM_BUTTON) {
|
||||
uiButtonItem *bitem = (uiButtonItem *)item;
|
||||
@ -5817,9 +5816,11 @@ void uiLayoutSetTooltipFunc(uiLayout *layout,
|
||||
continue;
|
||||
}
|
||||
UI_but_func_tooltip_set(bitem->but, func, arg, free_arg);
|
||||
arg_used = true;
|
||||
}
|
||||
else {
|
||||
uiLayoutSetTooltipFunc((uiLayout *)item, func, arg, copy_arg, free_arg);
|
||||
arg_used = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user