summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-09-18 23:18:29 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-01-31 23:14:57 +0100
commit7e056f1b3761403add50adb2e724b979899d3836 (patch)
treefec9a77fb1f2c3803d2b7d15959b5976ac99bb9f /servers
parent97df6de4a77393069c639a57d22bebb2f6f54680 (diff)
Fix physics events being interpreted twice when in canvas layer
Diffstat (limited to 'servers')
-rw-r--r--servers/physics_2d/godot_space_2d.cpp2
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 89afb0e2a0..0a624b3f30 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;
}