aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/collision_shape_2d.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2017-07-19 02:03:34 +0700
committerPoommetee Ketson2017-07-19 02:03:34 +0700
commit49c7620326a557bc809340dd1090b46120e43eac (patch)
tree887ca12413c5d7d21bb9ac3190a1d81bb57157b7 /scene/2d/collision_shape_2d.cpp
parent5a42bbaace7d8a72e2842f760c6ac905ac238d2c (diff)
downloadgodot-49c7620326a557bc809340dd1090b46120e43eac.tar.gz
godot-49c7620326a557bc809340dd1090b46120e43eac.tar.zst
godot-49c7620326a557bc809340dd1090b46120e43eac.zip
Add object type hint for docs
Diffstat (limited to '')
-rw-r--r--scene/2d/collision_shape_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp
index ff4aa245e..890ac0c1f 100644
--- a/scene/2d/collision_shape_2d.cpp
+++ b/scene/2d/collision_shape_2d.cpp
@@ -201,8 +201,8 @@ bool CollisionShape2D::is_one_way_collision_enabled() const {
void CollisionShape2D::_bind_methods() {
- ClassDB::bind_method(D_METHOD("set_shape", "shape"), &CollisionShape2D::set_shape);
- ClassDB::bind_method(D_METHOD("get_shape"), &CollisionShape2D::get_shape);
+ ClassDB::bind_method(D_METHOD("set_shape", "shape:Shape2D"), &CollisionShape2D::set_shape);
+ ClassDB::bind_method(D_METHOD("get_shape:Shape2D"), &CollisionShape2D::get_shape);
ClassDB::bind_method(D_METHOD("set_disabled", "disabled"), &CollisionShape2D::set_disabled);
ClassDB::bind_method(D_METHOD("is_disabled"), &CollisionShape2D::is_disabled);
ClassDB::bind_method(D_METHOD("set_one_way_collision", "enabled"), &CollisionShape2D::set_one_way_collision);