diff options
author | robfram <robfram@gmail.com> | 2018-03-17 18:52:39 +0100 |
---|---|---|
committer | robfram <robfram@gmail.com> | 2018-03-18 11:58:40 +0100 |
commit | 28ab60422d648d43d219186ea0ecffce1645188f (patch) | |
tree | a90d492724bb569ffb51b7533aa64a69a561d1bc /scene/resources/animation.h | |
parent | 201d2d7226ba4d385ac26e3cfaada180c2a7dacb (diff) |
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.
Diffstat (limited to 'scene/resources/animation.h')
0 files changed, 0 insertions, 0 deletions