Prevent dragging from SceneTree buttons
Created by: timothyqiu
This fixes #10026
- Disables the possibility to drag a node from its icon buttons
- To determine whether it's dragging from the icon buttons, a
Tree:: get_button_id_at_position
public method is added- Why not
get_button_at_position
? While button ID is a standalone value, button index does not make much sense without item/column around. Get button ID makes the method simple. - Why not
is_button_at_position
? As a public method, this seems too limited to a single application.
- Why not
- To determine whether it's dragging from the icon buttons, a