Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions haxe/ui/styles/animation/util/Actuator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Actuator<T> {
}

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):
Expand All @@ -158,7 +158,7 @@ class Actuator<T> {
} 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):
Expand All @@ -172,6 +172,7 @@ class Actuator<T> {
if (start == null || end == null) {
continue;
}

switch (end) {
case Value.VColor(v):
var startColor:Color = cast(start, Color);
Expand Down