summaryrefslogtreecommitdiffstats
path: root/scene/main/scene_tree.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-30 16:30:55 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-30 16:50:25 +0200
commit570cdc128f79e6acc4cfb37fa7d1606db9fac198 (patch)
treeff0dfeba52fbcd1c66135327e07bc32aa4a3188e /scene/main/scene_tree.cpp
parentbc0f5d3dde0f847dffdad927157a209271ced923 (diff)
downloadredot-engine-570cdc128f79e6acc4cfb37fa7d1606db9fac198.tar.gz
Rename Node's `filename` property to `scene_file_path` for clarity
Diffstat (limited to 'scene/main/scene_tree.cpp')
-rw-r--r--scene/main/scene_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp
index 6e78193717..3d07e4473d 100644
--- a/scene/main/scene_tree.cpp
+++ b/scene/main/scene_tree.cpp
@@ -1105,7 +1105,7 @@ Error SceneTree::change_scene_to(const Ref<PackedScene> &p_scene) {
Error SceneTree::reload_current_scene() {
ERR_FAIL_COND_V(!current_scene, ERR_UNCONFIGURED);
- String fname = current_scene->get_filename();
+ String fname = current_scene->get_scene_file_path();
return change_scene(fname);
}