diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 07:29:16 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 07:29:16 +0100 |
commit | b7c0f613b5eb1e19d5637c3062f6d8db68236a5e (patch) | |
tree | 6c956223855f6e2c71c221030e1c8e29feee9ffb /servers/physics_2d | |
parent | a350b42e4b9d669d786320353460469df9649d52 (diff) | |
parent | 7e056f1b3761403add50adb2e724b979899d3836 (diff) |
Merge pull request #66076 from Sauermann/fix-double-physics-input-events-for-layers
Fix physics events being interpreted twice for nodes in canvas layer
Diffstat (limited to 'servers/physics_2d')
-rw-r--r-- | servers/physics_2d/godot_space_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/godot_space_2d.cpp b/servers/physics_2d/godot_space_2d.cpp index 1d1f1ba054..1beb5336f7 100644 --- a/servers/physics_2d/godot_space_2d.cpp +++ b/servers/physics_2d/godot_space_2d.cpp @@ -83,7 +83,7 @@ int GodotPhysicsDirectSpaceState2D::intersect_point(const PointParameters &p_par continue; } - if (p_parameters.canvas_instance_id.is_valid() && col_obj->get_canvas_instance_id() != p_parameters.canvas_instance_id) { + if (col_obj->get_canvas_instance_id() != p_parameters.canvas_instance_id) { continue; } |