aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/scenes_dock.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-09 21:43:28 -0300
committerJuan Linietsky2016-06-09 21:43:28 -0300
commitf4ff30dff0468880c6b36c347e83ebacb9db2d5e (patch)
tree52632980a500e2e555cbb8fcb23e7580daca294d /tools/editor/scenes_dock.cpp
parent94a6ff3d7a2ff770e32a68ac76771639e5a22665 (diff)
downloadgodot-f4ff30dff0468880c6b36c347e83ebacb9db2d5e.tar.gz
godot-f4ff30dff0468880c6b36c347e83ebacb9db2d5e.tar.zst
godot-f4ff30dff0468880c6b36c347e83ebacb9db2d5e.zip
If a resource is delete from fs dialog, but the resource is currently loaded,
clear the path of the resource. Fixes #5110
Diffstat (limited to 'tools/editor/scenes_dock.cpp')
-rw-r--r--tools/editor/scenes_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/scenes_dock.cpp b/tools/editor/scenes_dock.cpp
index 7c61e3d4a..7953cf273 100644
--- a/tools/editor/scenes_dock.cpp
+++ b/tools/editor/scenes_dock.cpp
@@ -1052,6 +1052,7 @@ void ScenesDock::_file_option(int p_option) {
if (path.ends_with("/") || !files->is_selected(i))
continue;
torem.push_back(path);
+
}
if (torem.empty()) {