diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-12-01 21:44:14 -0200 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-12-01 21:44:14 -0200 |
commit | 5eb546e04b54fc583e4078dc89d8b54157f54b5d (patch) | |
tree | 0f2d14b2628fb2a0091bc4faed2bb4315a631990 | |
parent | d70e16f72f2db8c299279fc2903f4308191f142e (diff) | |
parent | dae2f4c96f311191b9066e6fe78d23199cb5cf5f (diff) |
Merge pull request #867 from adolson/circleshape2d-radius-increment
add sane radius increment to CircleShape2D
-rw-r--r-- | scene/resources/circle_shape_2d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/resources/circle_shape_2d.cpp b/scene/resources/circle_shape_2d.cpp index 056be87e72..d6a9db690b 100644 --- a/scene/resources/circle_shape_2d.cpp +++ b/scene/resources/circle_shape_2d.cpp @@ -54,9 +54,7 @@ void CircleShape2D::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_radius","radius"),&CircleShape2D::set_radius); ObjectTypeDB::bind_method(_MD("get_radius"),&CircleShape2D::get_radius); - - - ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius"),_SCS("set_radius"),_SCS("get_radius") ); + ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,16384,0.5"),_SCS("set_radius"),_SCS("get_radius") ); } |