mirror of
https://github.com/godotengine/godot.git
synced 2024-10-22 21:21:53 +00:00
Merge b05aab4b33
into 533c616cb8
This commit is contained in:
commit
c5a972d293
|
@ -126,7 +126,8 @@ void SceneTreeDock::input(const Ref<InputEvent> &p_event) {
|
|||
Ref<InputEventMouseButton> mb = p_event;
|
||||
|
||||
if (mb.is_valid() && (mb->get_button_index() == MouseButton::LEFT || mb->get_button_index() == MouseButton::RIGHT)) {
|
||||
if (mb->is_pressed() && scene_tree->get_rect().has_point(scene_tree->get_local_mouse_position())) {
|
||||
Tree *tree = scene_tree->get_scene_tree();
|
||||
if (mb->is_pressed() && tree->get_rect().has_point(tree->get_local_mouse_position())) {
|
||||
tree_clicked = true;
|
||||
} else if (!mb->is_pressed()) {
|
||||
tree_clicked = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user