Merge pull request #118909 from aurpine/fix-scene_tree-constr-vrs-texture

Fix SceneTree constructor not using VRS texture
This commit is contained in:
Thaddeus Crews
2026-04-28 09:02:41 -05:00
+1 -4
View File
@@ -2153,10 +2153,7 @@ SceneTree::SceneTree() {
if (load_err) {
ERR_PRINT("Non-existing or invalid VRS texture at '" + vrs_texture_path + "'.");
} else {
Ref<ImageTexture> vrs_texture;
vrs_texture.instantiate();
vrs_texture->create_from_image(vrs_image);
root->set_vrs_texture(vrs_texture);
root->set_vrs_texture(ImageTexture::create_from_image(vrs_image));
}
}