diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-16 15:15:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 15:15:51 +0200 |
commit | 78d09a41639ec2c2f1e44541bd696058795a61c5 (patch) | |
tree | fe58858260af89d31bd595261f17884f077c1de2 /scene | |
parent | bc5ba1c266050aa4aa746cfc3ede4634e692a5dc (diff) | |
parent | 430d1fd79544906e9b55092441f2f446948cbf2e (diff) |
Merge pull request #37903 from Xrayez/shape-2d-draw-bind
Bind Shape2D draw method
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/shape_2d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/shape_2d.cpp b/scene/resources/shape_2d.cpp index 99e8020e34..94cecc76eb 100644 --- a/scene/resources/shape_2d.cpp +++ b/scene/resources/shape_2d.cpp @@ -100,6 +100,7 @@ void Shape2D::_bind_methods() { ClassDB::bind_method(D_METHOD("collide_with_motion", "local_xform", "local_motion", "with_shape", "shape_xform", "shape_motion"), &Shape2D::collide_with_motion); ClassDB::bind_method(D_METHOD("collide_and_get_contacts", "local_xform", "with_shape", "shape_xform"), &Shape2D::collide_and_get_contacts); ClassDB::bind_method(D_METHOD("collide_with_motion_and_get_contacts", "local_xform", "local_motion", "with_shape", "shape_xform", "shape_motion"), &Shape2D::collide_with_motion_and_get_contacts); + ClassDB::bind_method(D_METHOD("draw", "canvas_item", "color"), &Shape2D::draw); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "custom_solver_bias", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_custom_solver_bias", "get_custom_solver_bias"); } |