diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-08 11:53:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 11:53:02 +0100 |
commit | 332a33503bf6ddd25f4012a0b8caaaeb67e9b18e (patch) | |
tree | 0eb10c2fcb4e7f94a2ca16365e9d36076b94bc03 /modules/gltf/gltf_camera.h | |
parent | 5260b6e046c244ed6376c47c7af5a0f27d934c12 (diff) | |
parent | f7209b459b4faaae9d93bfb6ac5346eb41787f92 (diff) |
Merge pull request #43952 from qarmin/cppcheck_modules
Initialize class/struct variables with default values in modules/
Diffstat (limited to 'modules/gltf/gltf_camera.h')
-rw-r--r-- | modules/gltf/gltf_camera.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gltf/gltf_camera.h b/modules/gltf/gltf_camera.h index e5c2041793..bf94b80bef 100644 --- a/modules/gltf/gltf_camera.h +++ b/modules/gltf/gltf_camera.h @@ -38,8 +38,8 @@ class GLTFCamera : public Resource { private: bool perspective = true; - float fov_size = 75; - float zfar = 4000; + float fov_size = 75.0; + float zfar = 4000.0; float znear = 0.05; protected: |