diff options
author | MattUV <matt.huve@gmail.com> | 2016-05-12 17:03:15 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-05-12 17:03:15 +0200 |
commit | 91c85ff1f5e83fd7e360ad07abad98684acf6ecf (patch) | |
tree | afacf7caed86aabf1d753fbb690607cb5db2f9d0 | |
parent | 48dc4d92a8f3c9eb42456eda2433c6fcaff0c723 (diff) |
classref: Fixed return types in Area and Area2D (#4635)
-rw-r--r-- | doc/base/classes.xml | 4 | ||||
-rw-r--r-- | scene/2d/area_2d.cpp | 4 | ||||
-rw-r--r-- | scene/3d/area.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 79bb313c9b..c83e51f383 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -4026,7 +4026,7 @@ </description> </method> <method name="overlaps_body" qualifiers="const"> - <return type="PhysicsBody2D"> + <return type="bool"> </return> <argument index="0" name="body" type="Object"> </argument> @@ -4035,7 +4035,7 @@ </description> </method> <method name="overlaps_area" qualifiers="const"> - <return type="Area2D"> + <return type="bool"> </return> <argument index="0" name="area" type="Object"> </argument> diff --git a/scene/2d/area_2d.cpp b/scene/2d/area_2d.cpp index 50a115174d..8b7aff3b7a 100644 --- a/scene/2d/area_2d.cpp +++ b/scene/2d/area_2d.cpp @@ -638,8 +638,8 @@ void Area2D::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area2D::get_overlapping_bodies); ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area2D::get_overlapping_areas); - ObjectTypeDB::bind_method(_MD("overlaps_body:PhysicsBody2D","body"),&Area2D::overlaps_body); - ObjectTypeDB::bind_method(_MD("overlaps_area:Area2D","area"),&Area2D::overlaps_area); + ObjectTypeDB::bind_method(_MD("overlaps_body","body"),&Area2D::overlaps_body); + ObjectTypeDB::bind_method(_MD("overlaps_area","area"),&Area2D::overlaps_area); ObjectTypeDB::bind_method(_MD("_body_inout"),&Area2D::_body_inout); ObjectTypeDB::bind_method(_MD("_area_inout"),&Area2D::_area_inout); diff --git a/scene/3d/area.cpp b/scene/3d/area.cpp index 8527c4d60e..a8a4122016 100644 --- a/scene/3d/area.cpp +++ b/scene/3d/area.cpp @@ -628,8 +628,8 @@ void Area::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_overlapping_bodies"),&Area::get_overlapping_bodies); ObjectTypeDB::bind_method(_MD("get_overlapping_areas"),&Area::get_overlapping_areas); - ObjectTypeDB::bind_method(_MD("overlaps_body:PhysicsBody","body"),&Area::overlaps_body); - ObjectTypeDB::bind_method(_MD("overlaps_area:Area","area"),&Area::overlaps_area); + ObjectTypeDB::bind_method(_MD("overlaps_body","body"),&Area::overlaps_body); + ObjectTypeDB::bind_method(_MD("overlaps_area","area"),&Area::overlaps_area); ObjectTypeDB::bind_method(_MD("_body_inout"),&Area::_body_inout); ObjectTypeDB::bind_method(_MD("_area_inout"),&Area::_area_inout); |