Merge pull request #1446 from UsernameIsAReservedWord/fixes_kinematicbody_move_crash

should fixes #1284 (KinematicBody .move() crash)
This commit is contained in:
Juan Linietsky 2015-03-22 14:56:30 -03:00
commit c2d975582c
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ struct MotionShapeSW : public ShapeSW {
}
return support;
}
virtual void get_supports(const Vector3& p_normal,int p_max,Vector3 *r_supports,int & r_amount) const {}
virtual void get_supports(const Vector3& p_normal,int p_max,Vector3 *r_supports,int & r_amount) const { r_amount=0; }
bool intersect_segment(const Vector3& p_begin,const Vector3& p_end,Vector3 &r_result, Vector3 &r_normal) const { return false; }
Vector3 get_moment_of_inertia(float p_mass) const { return Vector3(); }