Merge pull request #118909 from aurpine/fix-scene_tree-constr-vrs-texture
Fix SceneTree constructor not using VRS texture
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user