diff options
author | AndreaCatania <info@andreacatania.com> | 2017-11-21 22:56:40 +0100 |
---|---|---|
committer | AndreaCatania <info@andreacatania.com> | 2017-11-21 22:56:40 +0100 |
commit | d6e413bb9cb91255014cddacdba1591e14df56dd (patch) | |
tree | 39977ef56522b32e12c62aaa6eeb6117bdc5f692 /scene/main/viewport.cpp | |
parent | 20b07a1fb55c31d326c3f9c36d1276eb1bcf15e6 (diff) | |
download | redot-engine-d6e413bb9cb91255014cddacdba1591e14df56dd.tar.gz |
Removed type_mask and fixed some variable name
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r-- | scene/main/viewport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 1f539041fd..1fc2d4b16e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -539,7 +539,7 @@ void Viewport::_notification(int p_what) { Vector2 point = get_canvas_transform().affine_inverse().xform(pos); Physics2DDirectSpaceState::ShapeResult res[64]; - int rc = ss2d->intersect_point(point, res, 64, Set<RID>(), 0xFFFFFFFF, 0xFFFFFFFF, true); + int rc = ss2d->intersect_point(point, res, 64, Set<RID>(), 0xFFFFFFFF, true); for (int i = 0; i < rc; i++) { if (res[i].collider_id && res[i].collider) { @@ -622,7 +622,7 @@ void Viewport::_notification(int p_what) { PhysicsDirectSpaceState *space = PhysicsServer::get_singleton()->space_get_direct_state(find_world()->get_space()); if (space) { - bool col = space->intersect_ray(from, from + dir * 10000, result, Set<RID>(), 0xFFFFFFFF, 0xFFFFFFFF, true); + bool col = space->intersect_ray(from, from + dir * 10000, result, Set<RID>(), 0xFFFFFFFF, true); ObjectID new_collider = 0; if (col) { @@ -658,7 +658,7 @@ void Viewport::_notification(int p_what) { PhysicsDirectSpaceState *space = PhysicsServer::get_singleton()->space_get_direct_state(find_world()->get_space()); if (space) { - bool col = space->intersect_ray(from, from + dir * 10000, result, Set<RID>(), 0xFFFFFFFF, 0xFFFFFFFF, true); + bool col = space->intersect_ray(from, from + dir * 10000, result, Set<RID>(), 0xFFFFFFFF, true); ObjectID new_collider = 0; if (col) { CollisionObject *co = Object::cast_to<CollisionObject>(result.collider); |