Code cleanup.

This commit is contained in:
2022-11-12 01:02:30 +08:00
parent f7454eb514
commit fcc159ab6c

View File

@@ -127,7 +127,7 @@ namespace Cryville.Crtr {
float ft, tt = (float)vec.Time;
if (!_vect.TryGetValue(id, out ft)) ft = tt;
if (vec.IsNull) {
_etor.ContextCascadeUpdate(_var_value, new PropSrc.Arbitrary(PdtInternalType.Null, new byte[0]));
_etor.ContextCascadeUpdate(_var_value, new PropSrc.Arbitrary(PdtInternalType.Null, _nullvalue));
}
else {
fixed (byte* ptr = _vecbuf) {
@@ -157,7 +157,7 @@ namespace Cryville.Crtr {
else {
var pid = new ProxiedInputIdentifier { Source = id, Target = target };
PropSrc.Arbitrary fv, tv = _etor.ContextCascadeLookup(_var_value);
if (!_vecs.TryGetValue(pid, out fv)) fv = new PropSrc.Arbitrary(PdtInternalType.Null, new byte[0]);
if (!_vecs.TryGetValue(pid, out fv)) fv = new PropSrc.Arbitrary(PdtInternalType.Null, _nullvalue);
if (fv.Type != PdtInternalType.Null || tv.Type != PdtInternalType.Null) {
if (fv.Type == PdtInternalType.Null) {
_activeCounts[id.Source]++;