1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add PackedScene::reload_from_file() override

This commit is contained in:
Adam Scott
2022-11-26 13:46:04 -05:00
parent e29b982dbf
commit a34a26eb66
3 changed files with 56 additions and 1 deletions

View File

@@ -360,7 +360,6 @@ Ref<PackedScene> GDScriptCache::get_packed_scene(const String &p_path, Error &r_
singleton->packed_scene_cache[p_path] = scene;
singleton->packed_scene_dependencies[p_path].insert(p_owner);
scene->recreate_state();
scene->reload_from_file();
return scene;
}