Add execute once annotation.
This commit is contained in:
@@ -88,9 +88,14 @@ namespace Cryville.Crtr {
|
|||||||
if (nstack == null) throw;
|
if (nstack == null) throw;
|
||||||
nstack.Elements.Add(e);
|
nstack.Elements.Add(e);
|
||||||
}
|
}
|
||||||
if (nctx != null) MatchDynamic(e.Element, group, dl, nstack, new RuntimeSkinContext(
|
if (nctx != null) {
|
||||||
nctx, e.Context, e.Selectors.annotations.Contains("if"), e.Selectors.annotations.Contains("then")
|
MatchDynamic(e.Element, group, dl, nstack, new RuntimeSkinContext(
|
||||||
));
|
nctx, e.Context, e.Selectors.annotations.Contains("if"), e.Selectors.annotations.Contains("then")
|
||||||
|
));
|
||||||
|
if (e.Selectors.annotations.Contains("once")) {
|
||||||
|
stack.Elements.RemoveAt(i--);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (psrcs != null) ChartPlayer.etor.ContextCascadeDiscard();
|
if (psrcs != null) ChartPlayer.etor.ContextCascadeDiscard();
|
||||||
}
|
}
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
|
|||||||
Reference in New Issue
Block a user