summaryrefslogtreecommitdiff
path: root/scene/resources/circle_shape_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/circle_shape_2d.cpp')
-rw-r--r--scene/resources/circle_shape_2d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/circle_shape_2d.cpp b/scene/resources/circle_shape_2d.cpp
index a82f3f5e2d..cd707b1032 100644
--- a/scene/resources/circle_shape_2d.cpp
+++ b/scene/resources/circle_shape_2d.cpp
@@ -51,10 +51,10 @@ real_t CircleShape2D::get_radius() const {
void CircleShape2D::_bind_methods() {
- ClassDB::bind_method(_MD("set_radius","radius"),&CircleShape2D::set_radius);
- ClassDB::bind_method(_MD("get_radius"),&CircleShape2D::get_radius);
+ ClassDB::bind_method(D_METHOD("set_radius","radius"),&CircleShape2D::set_radius);
+ ClassDB::bind_method(D_METHOD("get_radius"),&CircleShape2D::get_radius);
- ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,16384,0.5"),_SCS("set_radius"),_SCS("get_radius") );
+ ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,16384,0.5"),"set_radius","get_radius") ;
}