From cf2962f6358ba6adf42e7263e3e6f4259b783dfd Mon Sep 17 00:00:00 2001 From: Gokhan Kurt Date: Mon, 4 Nov 2024 02:48:25 +0300 Subject: [PATCH] fix motion properties not working individually --- Runtime/Styling/Properties/StyleProperties.cs | 4 ++-- Tests/Performance/ReactUnity.Tests.Performance.asmdef | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/Styling/Properties/StyleProperties.cs b/Runtime/Styling/Properties/StyleProperties.cs index f8b4167e..ac8165d1 100644 --- a/Runtime/Styling/Properties/StyleProperties.cs +++ b/Runtime/Styling/Properties/StyleProperties.cs @@ -100,9 +100,9 @@ public static class StyleProperties public static readonly ValueListStyleProperty transitionDelay = new ValueListStyleProperty("transitionDelay", baseConverter: AllConverters.DurationConverter); public static readonly ValueListStyleProperty transitionPlayState = new ValueListStyleProperty("transitionPlayState"); - public static readonly StyleProperty motionDuration = new StyleProperty("motionDuration", 0f, false); + public static readonly StyleProperty motionDuration = new StyleProperty("motionDuration", 0f, false, false, AllConverters.DurationConverter); public static readonly StyleProperty motionTimingFunction = new StyleProperty("motionTimingFunction", TimingFunctions.Default, false); - public static readonly StyleProperty motionDelay = new StyleProperty("motionDelay", 0f, false); + public static readonly StyleProperty motionDelay = new StyleProperty("motionDelay", 0f, false, false, AllConverters.DurationConverter); public static readonly ValueListStyleProperty animationDelay = new ValueListStyleProperty("animationDelay", baseConverter: AllConverters.DurationConverter); public static readonly ValueListStyleProperty animationDirection = new ValueListStyleProperty("animationDirection"); diff --git a/Tests/Performance/ReactUnity.Tests.Performance.asmdef b/Tests/Performance/ReactUnity.Tests.Performance.asmdef index 1f354dbb..a1d9b4de 100644 --- a/Tests/Performance/ReactUnity.Tests.Performance.asmdef +++ b/Tests/Performance/ReactUnity.Tests.Performance.asmdef @@ -13,8 +13,8 @@ "GUID:347a20883bb61d74abf78fec0515bb21", "GUID:f3df39452b4b85c48b166389e7ca3670", "GUID:9a66a2efedc711946b7428ea9b41cc0d", - "GUID:c0dd0d10738d4ad4a9de57c559d0ca1b", - "GUID:1d91773c9af12264b8fcdd5d75ddeed5" + "GUID:1d91773c9af12264b8fcdd5d75ddeed5", + "GUID:c0dd0d10738d4ad4a9de57c559d0ca1b" ], "includePlatforms": [], "excludePlatforms": [],