You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Keeps the filename when marking scene as unsaved
This commit is contained in:
@@ -1420,7 +1420,6 @@ void EditorNode::_mark_unsaved_scenes() {
|
|||||||
String path = node->get_filename();
|
String path = node->get_filename();
|
||||||
if (!(path == String() || FileAccess::exists(path))) {
|
if (!(path == String() || FileAccess::exists(path))) {
|
||||||
|
|
||||||
node->set_filename("");
|
|
||||||
if (i == editor_data.get_edited_scene())
|
if (i == editor_data.get_edited_scene())
|
||||||
set_current_version(-1);
|
set_current_version(-1);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user