From bdb1c32fac771873a7f105dcdbb512440bcb6253 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Fri, 14 Nov 2025 12:58:02 -0500 Subject: [PATCH] Fix a rare platform-specific crash when operating on opacity. --- haxe/ui/styles/animation/util/Actuator.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/haxe/ui/styles/animation/util/Actuator.hx b/haxe/ui/styles/animation/util/Actuator.hx index 6e0e69aa8..3215af3b3 100644 --- a/haxe/ui/styles/animation/util/Actuator.hx +++ b/haxe/ui/styles/animation/util/Actuator.hx @@ -147,7 +147,7 @@ class Actuator { } var isVariant = false; - if (start != null) { + if (start != null && Std.isOfType(start, VariantType)) { try { // some neko strangness here with exception being thrown on the switch switch (start) { case VariantType.VT_String(v): @@ -158,7 +158,7 @@ class Actuator { } catch (e:Dynamic) { } } - if (end != null) { + if (end != null && Std.isOfType(end, VariantType)) { try { // some neko strangness here with exception being thrown on the switch switch (end) { case VariantType.VT_String(v): @@ -172,6 +172,7 @@ class Actuator { if (start == null || end == null) { continue; } + switch (end) { case Value.VColor(v): var startColor:Color = cast(start, Color);