summaryrefslogtreecommitdiff
path: root/scene/3d/path_3d.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-08 09:31:08 +0100
committerGitHub <noreply@github.com>2021-02-08 09:31:08 +0100
commitcea42faa77d72cdbea8ab7c38936e7c8722900d0 (patch)
tree3c7f54d3b3e6d355a2ffb14933e0b5461478b224 /scene/3d/path_3d.h
parent57e2822a05c29db3980ad243c37a34acf6c4d14b (diff)
parent003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 (diff)
Merge pull request #44630 from qarmin/cppcheck_scene_1
Initialize class variables with default values in scene/ [1/2]
Diffstat (limited to 'scene/3d/path_3d.h')
-rw-r--r--scene/3d/path_3d.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/3d/path_3d.h b/scene/3d/path_3d.h
index 15e38c95e7..17ee47593e 100644
--- a/scene/3d/path_3d.h
+++ b/scene/3d/path_3d.h
@@ -66,10 +66,10 @@ public:
private:
Path3D *path = nullptr;
- real_t delta_offset = 0; // Change in offset since last _update_transform.
- real_t offset = 0;
- real_t h_offset = 0;
- real_t v_offset = 0;
+ real_t delta_offset = 0.0; // Change in offset since last _update_transform.
+ real_t offset = 0.0;
+ real_t h_offset = 0.0;
+ real_t v_offset = 0.0;
bool cubic = true;
bool loop = true;
RotationMode rotation_mode = ROTATION_XYZ;