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:
parent
c858dbdc4e
commit
57061413eb
4 changed files with 66 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue