Bugfix: AStarPath is constantly dirtying scene

There are a few things that are making the AStarPath constantly dirty the scene when shown in the inspector. Here are the fixes I’ve applied locally to get it to stop:

In AstarSerializer.CloseSerialize, after adding the final entry and before saving, reset the timestamps of each entry:

`    foreach(var entry in zip.Entries)
    {
        var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
        entry.AccessedTime = epoch;
        entry.CreationTime = epoch;
        entry.LastModified = epoch;
        entry.ModifiedTime = epoch;
    }`

In AStarPathEditor.SaveGraphsAndUndo, don’t dirty the scene on deselecting the object:

if (/*Event.current == null ||*/ script.astarData.GetData() == null) {

In AStarPath, don’t save the lastScanTime (doesn’t really help but it removes one source of superfluous changes to assets):

`    [System.NonSerialized]
    public float lastScanTime = 0F;
`

Ah. timestamps. So that was why the data was constantly changing. Now I feel dumb for not thinking about that, I spend a good amount of time trying to figure out why the zip data was changing even though the graph data wasn’t.

Thanks for the fixes, I will try to include them in the next update.

No problem!