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

Generate scene ID for created built-in Resources

This commit is contained in:
kobewi
2025-06-24 17:56:48 +02:00
parent 987832be46
commit 73de8bf165
3 changed files with 3 additions and 3 deletions

View File

@@ -251,7 +251,7 @@ void fog() {
if (is_built_in) {
Node *edited_scene = get_tree()->get_edited_scene_root();
if (likely(edited_scene)) {
shader->set_path(edited_scene->get_scene_file_path() + "::");
shader->set_path(edited_scene->get_scene_file_path() + "::" + shader->generate_scene_unique_id());
}
} else {
String lpath = ProjectSettings::get_singleton()->localize_path(file_path->get_text());