Optimize GC for motions.

This commit is contained in:
2023-02-07 23:15:52 +08:00
parent 4e9d7e5b87
commit 187f07d2c9
4 changed files with 11 additions and 12 deletions

View File

@@ -911,11 +911,11 @@ namespace Cryville.Crtr {
}
public override bool IsZero() {
if (!xw.Equals(0)) return false;
if (!xh.Equals(0)) return false;
if (!yw.Equals(0)) return false;
if (!yh.Equals(0)) return false;
if (!z.Equals(0)) return false;
if (xw == null || xw != 0) return false;
if (xh == null || xh != 0) return false;
if (yw == null || yw != 0) return false;
if (xh == null || xh != 0) return false;
if (z == null || z != 0) return false;
return true;
}