Fix error handling in PDT evaluator.
This commit is contained in:
@@ -131,7 +131,8 @@ namespace Cryville.Crtr {
|
||||
public SkinContext Match(SkinContext a) {
|
||||
ChartPlayer.etor.ContextTransform = a.Transform;
|
||||
try {
|
||||
ChartPlayer.etor.Evaluate(_op, _exp);
|
||||
if (!ChartPlayer.etor.Evaluate(_op, _exp))
|
||||
throw new EvaluationFailureException();
|
||||
return _flag ? a : null;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
Reference in New Issue
Block a user