We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c32c58c + bbe6b3b commit e224a6cCopy full SHA for e224a6c
examples/js/loaders/GLTFLoader.js
@@ -842,7 +842,7 @@ THREE.GLTFLoader = ( function () {
842
for ( var i = 0, il = params.length; i < il; i ++ ) {
843
844
var value = source[ params[ i ] ];
845
- target[ params[ i ] ] = value.isColor ? value.clone() : value;
+ target[ params[ i ] ] = ( value && value.isColor ) ? value.clone() : value;
846
847
}
848
0 commit comments