diff options
author | mnemoli <prismmirrorlens@gmail.com> | 2023-04-04 18:04:49 +0100 |
---|---|---|
committer | mnemoli <prismmirrorlens@gmail.com> | 2024-01-11 14:18:37 +0000 |
commit | a4072196938ece22094be9f2e4b1d1fe19586be3 (patch) | |
tree | b49fab1f4c4e0b3aed41749fecf2a99f309c0e65 /scene/main/viewport.h | |
parent | c12d63556b5c1da03a00dd4c45c40e60bd8d68c2 (diff) | |
download | redot-engine-a4072196938ece22094be9f2e4b1d1fe19586be3.tar.gz |
Add Viewport setting for picking only first-encountered CanvasItem physics object
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r-- | scene/main/viewport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h index 68084fc35f..3fda50ac43 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -254,6 +254,7 @@ private: bool physics_object_picking = false; bool physics_object_picking_sort = false; + bool physics_object_picking_first_only = false; List<Ref<InputEvent>> physics_picking_events; ObjectID physics_object_capture; ObjectID physics_object_over; @@ -595,6 +596,8 @@ public: bool get_physics_object_picking(); void set_physics_object_picking_sort(bool p_enable); bool get_physics_object_picking_sort(); + void set_physics_object_picking_first_only(bool p_enable); + bool get_physics_object_picking_first_only(); Variant gui_get_drag_data() const; |