summaryrefslogtreecommitdiff
path: root/scene/3d/room_instance.cpp
diff options
context:
space:
mode:
authorrobfram <robfram@gmail.com>2018-03-17 18:52:39 +0100
committerrobfram <robfram@gmail.com>2018-03-18 11:58:40 +0100
commit28ab60422d648d43d219186ea0ecffce1645188f (patch)
treea90d492724bb569ffb51b7533aa64a69a561d1bc /scene/3d/room_instance.cpp
parent201d2d7226ba4d385ac26e3cfaada180c2a7dacb (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/3d/room_instance.cpp')
0 files changed, 0 insertions, 0 deletions