aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/path.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-02 23:03:46 -0300
committerJuan Linietsky2017-01-02 23:03:46 -0300
commit118eed485e8f928a5a0dab530ae93211afa10525 (patch)
tree83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /scene/3d/path.cpp
parentce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff)
downloadgodot-118eed485e8f928a5a0dab530ae93211afa10525.tar.gz
godot-118eed485e8f928a5a0dab530ae93211afa10525.tar.zst
godot-118eed485e8f928a5a0dab530ae93211afa10525.zip
Diffstat (limited to 'scene/3d/path.cpp')
-rw-r--r--scene/3d/path.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp
index ea2678b2e..98a81fc15 100644
--- a/scene/3d/path.cpp
+++ b/scene/3d/path.cpp
@@ -80,9 +80,9 @@ Ref<Curve3D> Path::get_curve() const{
void Path::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("set_curve","curve:Curve3D"),&Path::set_curve);
- ObjectTypeDB::bind_method(_MD("get_curve:Curve3D","curve"),&Path::get_curve);
- ObjectTypeDB::bind_method(_MD("_curve_changed"),&Path::_curve_changed);
+ ClassDB::bind_method(_MD("set_curve","curve:Curve3D"),&Path::set_curve);
+ ClassDB::bind_method(_MD("get_curve:Curve3D","curve"),&Path::get_curve);
+ ClassDB::bind_method(_MD("_curve_changed"),&Path::_curve_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve3D"), _SCS("set_curve"),_SCS("get_curve"));
}
@@ -257,26 +257,26 @@ void PathFollow::_get_property_list( List<PropertyInfo> *p_list) const{
void PathFollow::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("set_offset","offset"),&PathFollow::set_offset);
- ObjectTypeDB::bind_method(_MD("get_offset"),&PathFollow::get_offset);
+ ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow::set_offset);
+ ClassDB::bind_method(_MD("get_offset"),&PathFollow::get_offset);
- ObjectTypeDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
- ObjectTypeDB::bind_method(_MD("get_h_offset"),&PathFollow::get_h_offset);
+ ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
+ ClassDB::bind_method(_MD("get_h_offset"),&PathFollow::get_h_offset);
- ObjectTypeDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
- ObjectTypeDB::bind_method(_MD("get_v_offset"),&PathFollow::get_v_offset);
+ ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
+ ClassDB::bind_method(_MD("get_v_offset"),&PathFollow::get_v_offset);
- ObjectTypeDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
- ObjectTypeDB::bind_method(_MD("get_unit_offset"),&PathFollow::get_unit_offset);
+ ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
+ ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow::get_unit_offset);
- ObjectTypeDB::bind_method(_MD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
- ObjectTypeDB::bind_method(_MD("get_rotation_mode"),&PathFollow::get_rotation_mode);
+ ClassDB::bind_method(_MD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
+ ClassDB::bind_method(_MD("get_rotation_mode"),&PathFollow::get_rotation_mode);
- ObjectTypeDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
- ObjectTypeDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
+ ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
+ ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
- ObjectTypeDB::bind_method(_MD("set_loop","loop"),&PathFollow::set_loop);
- ObjectTypeDB::bind_method(_MD("has_loop"),&PathFollow::has_loop);
+ ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow::set_loop);
+ ClassDB::bind_method(_MD("has_loop"),&PathFollow::has_loop);
BIND_CONSTANT( ROTATION_NONE );
BIND_CONSTANT( ROTATION_Y );