robfram 7563c17113 Fix saving unmodified scenes and resources
When `_save_all_scenes` or `save_resource_in_path` was called, they
always saved all the scenes and the resource no matter if they were
modified or not. For example, when `saving before run` option was
checked, it always overwrote the current scene and the default
environment simply by opening and runing the project.

This PR adds checks for unsaved scenes (using the same `unsave` check
others method used) and modified resources (comparing last modified
time and last import time).

Fix #6025.

(cherry picked from commit 28ab60422d648d43d219186ea0ecffce1645188f)
2018-04-28 17:22:29 +02:00
..
2018-01-18 09:08:01 +09:00
2018-01-18 09:08:01 +09:00
2018-02-22 12:02:02 +01:00
2018-02-19 20:48:36 +01:00