Skip to content

Commit d5b66eb

Browse files
also log if not defined
1 parent b8de30c commit d5b66eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/model/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ let createCube = function (width, height, depth, name, faces, fallbackFaces, tex
10231023
canvasCache[canvasKey] = {
10241024
img: img
10251025
};
1026-
if (!textures.hasOwnProperty(textureRef)) {
1026+
if (!textures.hasOwnProperty(textureRef) || !textures[textureRef]) {
10271027
console.warn("Missing texture for " + textureRef)
10281028
}
10291029
img.src = textures[textureRef];

0 commit comments

Comments
 (0)