public override void UpdateDirty() { if (!dirty) { return; } if (sourceChanged) { if (Solve() != EquationSystem.SolveResult.OKAY) { Debug.LogError("Solve Failed!!!!!!"); } } canvas.Clear(); base.UpdateDirty(); go.transform.SetMatrix(transform); canvas.SetStyle("entities"); foreach (var e in sketch.entityList) { if (!e.isVisible) { continue; } e.Draw(canvas); } sketch.MarkUnchanged(); canvas.UpdateDirty(); }