From 049d8cff7e9b8cc6ae73d8714e004237e757ca70 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 2 Jan 2024 16:17:39 +0100 Subject: [PATCH] Fixed sonar qube errors --- Nebulix/Rendering/Shaders/ShaderCompileException.cs | 1 - Nebulix/Rendering/Shaders/ShaderLinkException.cs | 1 - src/Camera/Camera.cs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Nebulix/Rendering/Shaders/ShaderCompileException.cs b/Nebulix/Rendering/Shaders/ShaderCompileException.cs index 028014c..6c2fc6b 100644 --- a/Nebulix/Rendering/Shaders/ShaderCompileException.cs +++ b/Nebulix/Rendering/Shaders/ShaderCompileException.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; namespace Nebulix.Rendering; -[Serializable] public class ShaderCompileException : Exception { protected ShaderType ShaderType; diff --git a/Nebulix/Rendering/Shaders/ShaderLinkException.cs b/Nebulix/Rendering/Shaders/ShaderLinkException.cs index a919ddb..be1e11d 100644 --- a/Nebulix/Rendering/Shaders/ShaderLinkException.cs +++ b/Nebulix/Rendering/Shaders/ShaderLinkException.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; namespace Nebulix.Rendering; -[Serializable] public class ShaderLinkException : Exception { public ShaderLinkException() : base("Error occured while trying to link a shader.") { } diff --git a/src/Camera/Camera.cs b/src/Camera/Camera.cs index 2446dfa..18a90f0 100644 --- a/src/Camera/Camera.cs +++ b/src/Camera/Camera.cs @@ -30,7 +30,7 @@ public class Camera /// /// Controlls how fast the camera moves if a key is pressed /// - public float MovementSpeed { get; set; } = 2.5f; + public float MovementSpeed { get; set; } public float Fov { get; set; } public Camera(Vector3D position, float yaw = -90.0f, float pitch = 0, float movementSpeed = 2.5f, float fov = 45.0f)