From e9b2a7f8947be953ea29ab4830b3b5d3e07ab83c Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sun, 19 Feb 2023 21:55:01 +0800 Subject: [PATCH] Fix error on dynamic expressions in static context. --- Assets/Cryville/Crtr/SkinContainer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Cryville/Crtr/SkinContainer.cs b/Assets/Cryville/Crtr/SkinContainer.cs index dca6a6b..10ccf6c 100644 --- a/Assets/Cryville/Crtr/SkinContainer.cs +++ b/Assets/Cryville/Crtr/SkinContainer.cs @@ -40,7 +40,10 @@ namespace Cryville.Crtr { ChartPlayer.etor.ContextTransform = rc.Transform; if (rc.PropSrcs != null) ChartPlayer.etor.ContextCascadeInsert(rc.PropSrcs); foreach (var p in rel.properties) { - p.Key.ExecuteStatic(group, ctx, p.Value); + try { + p.Key.ExecuteStatic(group, ctx, p.Value); + } + catch (EvaluationFailureException) { } if (p.Key.IsValueRequired && !p.Value.IsConstant) stack.Properties.Add( new DynamicProperty { Context = ctx, Key = p.Key, Value = p.Value } );