Rename Node's filename property to scene_file_path for clarity
This commit is contained in:
@@ -219,7 +219,7 @@ Array EditorInterface::get_open_scenes() const {
|
||||
if (scenes[idx_scn].root == nullptr) {
|
||||
continue;
|
||||
}
|
||||
ret.push_back(scenes[idx_scn].root->get_filename());
|
||||
ret.push_back(scenes[idx_scn].root->get_scene_file_path());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@@ -291,11 +291,11 @@ Error EditorInterface::save_scene() {
|
||||
if (!get_edited_scene_root()) {
|
||||
return ERR_CANT_CREATE;
|
||||
}
|
||||
if (get_edited_scene_root()->get_filename() == String()) {
|
||||
if (get_edited_scene_root()->get_scene_file_path() == String()) {
|
||||
return ERR_CANT_CREATE;
|
||||
}
|
||||
|
||||
save_scene_as(get_edited_scene_root()->get_filename());
|
||||
save_scene_as(get_edited_scene_root()->get_scene_file_path());
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user