Skip to content

Commit

Permalink
Merge pull request BabylonJS#13996 from Popov72/fix-cubetexture-parsing
Browse files Browse the repository at this point in the history
CubeTexture: Fix parsing when name has been overwritten
  • Loading branch information
carolhmj authored Jun 23, 2023
2 parents 5616e47 + ecd57d4 commit 69dc6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Materials/Textures/cubeTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class CubeTexture extends BaseTexture {
prefiltered = parsedTexture.prefiltered;
}
return new CubeTexture(
rootUrl + parsedTexture.name,
rootUrl + (parsedTexture.url ?? parsedTexture.name),
scene,
parsedTexture.extensions,
false,
Expand Down

0 comments on commit 69dc6a0

Please sign in to comment.