mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-08 02:24:46 +00:00
Properly rename scenes and resources after renaming or moving files, should fix #13976
It's not tested, so please test.
This commit is contained in:
@@ -701,6 +701,15 @@ String EditorData::get_scene_title(int p_idx) const {
|
||||
return name;
|
||||
}
|
||||
|
||||
void EditorData::set_scene_path(int p_idx, const String &p_path) {
|
||||
|
||||
ERR_FAIL_INDEX(p_idx, edited_scene.size());
|
||||
|
||||
if (!edited_scene[p_idx].root)
|
||||
return;
|
||||
edited_scene[p_idx].root->set_filename(p_path);
|
||||
}
|
||||
|
||||
String EditorData::get_scene_path(int p_idx) const {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), String());
|
||||
|
||||
Reference in New Issue
Block a user