diff options
Diffstat (limited to 'scene/3d/path_3d.h')
-rw-r--r-- | scene/3d/path_3d.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scene/3d/path_3d.h b/scene/3d/path_3d.h index 6f0db8c5c2..1b0f5fa4e0 100644 --- a/scene/3d/path_3d.h +++ b/scene/3d/path_3d.h @@ -35,7 +35,6 @@ #include "scene/resources/curve.h" class Path3D : public Node3D { - GDCLASS(Path3D, Node3D); Ref<Curve3D> curve; @@ -50,16 +49,14 @@ public: void set_curve(const Ref<Curve3D> &p_curve); Ref<Curve3D> get_curve() const; - Path3D(); + Path3D() {} }; class PathFollow3D : public Node3D { - GDCLASS(PathFollow3D, Node3D); public: enum RotationMode { - ROTATION_NONE, ROTATION_Y, ROTATION_XY, @@ -77,10 +74,10 @@ private: bool loop; RotationMode rotation_mode; - void _update_transform(); + void _update_transform(bool p_update_xyz_rot = true); protected: - virtual void _validate_property(PropertyInfo &property) const; + virtual void _validate_property(PropertyInfo &property) const override; void _notification(int p_what); static void _bind_methods(); @@ -107,7 +104,7 @@ public: void set_cubic_interpolation(bool p_enable); bool get_cubic_interpolation() const; - String get_configuration_warning() const; + String get_configuration_warning() const override; PathFollow3D(); }; |