Skip to content

Prevent dragging from SceneTree buttons

Rafał Mikrut requested to merge github/fork/timothyqiu/tree-drag-10026 into master

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.

Merge request reports