From 730833bd61a161a3a8b63c7d04475fc58e2240a8 Mon Sep 17 00:00:00 2001 From: AnnulusGames Date: Sat, 23 Nov 2024 22:16:15 +0900 Subject: [PATCH] =?UTF-8?q?Change:=20allow=20negative=20values=20=E2=80=8B?= =?UTF-8?q?=E2=80=8Bfor=20PlaybackSpeed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LitMotion/Assets/LitMotion/Runtime/Internal/Error.cs | 5 ----- src/LitMotion/Assets/LitMotion/Runtime/MotionHandle.cs | 1 - 2 files changed, 6 deletions(-) diff --git a/src/LitMotion/Assets/LitMotion/Runtime/Internal/Error.cs b/src/LitMotion/Assets/LitMotion/Runtime/Internal/Error.cs index c370c3e4..8796f862 100644 --- a/src/LitMotion/Assets/LitMotion/Runtime/Internal/Error.cs +++ b/src/LitMotion/Assets/LitMotion/Runtime/Internal/Error.cs @@ -26,11 +26,6 @@ public static void ArgumentNull(string message) throw new ArgumentNullException(message); } - public static void PlaybackSpeedMustBeZeroOrGreater() - { - throw new ArgumentOutOfRangeException("Playback speed must be 0 or greater."); - } - public static void TimeMustBeZeroOrGreater() { throw new ArgumentOutOfRangeException("Time must be 0 or greater."); diff --git a/src/LitMotion/Assets/LitMotion/Runtime/MotionHandle.cs b/src/LitMotion/Assets/LitMotion/Runtime/MotionHandle.cs index eb2a3cad..c346c21e 100644 --- a/src/LitMotion/Assets/LitMotion/Runtime/MotionHandle.cs +++ b/src/LitMotion/Assets/LitMotion/Runtime/MotionHandle.cs @@ -49,7 +49,6 @@ public readonly float PlaybackSpeed } set { - if (value < 0f) Error.PlaybackSpeedMustBeZeroOrGreater(); MotionManager.GetDataRef(this).PlaybackSpeed = value; } }