Optimize GC for vector property source.

This commit is contained in:
2023-02-21 18:27:29 +08:00
parent 6c983cc2cb
commit a3c5392caa
3 changed files with 41 additions and 46 deletions

View File

@@ -320,7 +320,7 @@ namespace Cryville.Crtr {
else {
AbsoluteValue = Vector.Construct(registry.Type, m.Groups[11].Value);
}
SubmitPropSrc("value", VectorSrc.Construct(() => {
SubmitPropSrc("value", new VectorSrc(() => {
if (RelativeNode != null) return RelativeNode.Value;
else return AbsoluteValue;
}));