diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-28 01:32:12 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-28 01:32:12 +0100 |
commit | d1caf2f0379bcd0f127df04fd2dcb66723e1ba2f (patch) | |
tree | f3434b29ce3f4122f306517aa56ad0719ec52d40 | |
parent | 46eebac3ae299177063b2be69b4f3cd4552f083a (diff) |
Remove bogus argument in body_get_node
-rw-r--r-- | doc/base/classes.xml | 2 | ||||
-rw-r--r-- | servers/physics/physics_server_sw.cpp | 2 | ||||
-rw-r--r-- | servers/physics/physics_server_sw.h | 2 | ||||
-rw-r--r-- | servers/physics_server.h | 2 |
4 files changed, 3 insertions, 5 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 29ecf5d114..2cc91ac070 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -24323,8 +24323,6 @@ This method controls whether the position between two cached points is interpola </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="arg1" type="int"> - </argument> <description> </description> </method> diff --git a/servers/physics/physics_server_sw.cpp b/servers/physics/physics_server_sw.cpp index a9a8042c19..7a35510963 100644 --- a/servers/physics/physics_server_sw.cpp +++ b/servers/physics/physics_server_sw.cpp @@ -517,7 +517,7 @@ void PhysicsServerSW::body_set_mode(RID p_body, BodyMode p_mode) { body->set_mode(p_mode); }; -PhysicsServer::BodyMode PhysicsServerSW::body_get_mode(RID p_body, BodyMode p_mode) const { +PhysicsServer::BodyMode PhysicsServerSW::body_get_mode(RID p_body) const { BodySW *body = body_owner.get(p_body); ERR_FAIL_COND_V(!body,BODY_MODE_STATIC); diff --git a/servers/physics/physics_server_sw.h b/servers/physics/physics_server_sw.h index abbb057616..b9dcff658b 100644 --- a/servers/physics/physics_server_sw.h +++ b/servers/physics/physics_server_sw.h @@ -146,7 +146,7 @@ public: virtual RID body_get_space(RID p_body) const; virtual void body_set_mode(RID p_body, BodyMode p_mode); - virtual BodyMode body_get_mode(RID p_body, BodyMode p_mode) const; + virtual BodyMode body_get_mode(RID p_body) const; virtual void body_add_shape(RID p_body, RID p_shape, const Transform& p_transform=Transform()); virtual void body_set_shape(RID p_body, int p_shape_idx,RID p_shape); diff --git a/servers/physics_server.h b/servers/physics_server.h index 66296fa15d..d0065e13aa 100644 --- a/servers/physics_server.h +++ b/servers/physics_server.h @@ -372,7 +372,7 @@ public: virtual RID body_get_space(RID p_body) const=0; virtual void body_set_mode(RID p_body, BodyMode p_mode)=0; - virtual BodyMode body_get_mode(RID p_body, BodyMode p_mode) const=0; + virtual BodyMode body_get_mode(RID p_body) const=0; virtual void body_add_shape(RID p_body, RID p_shape, const Transform& p_transform=Transform())=0; virtual void body_set_shape(RID p_body, int p_shape_idx,RID p_shape)=0; |