Explorar o código

Update ColladaLoader.js

Make missing joints a console warning rather than a showstopper. Often models will still be loadable / usable.
PeanutPower %!s(int64=11) %!d(string=hai) anos
pai
achega
8b762a2875
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      examples/js/loaders/ColladaLoader.js

+ 3 - 1
examples/js/loaders/ColladaLoader.js

@@ -541,7 +541,9 @@ THREE.ColladaLoader = function () {
 
 			} else {
 
-				throw 'ColladaLoader: Could not find joint \'' + bone.sid + '\'.';
+				console.log('ColladaLoader: Could not find joint \'' + bone.sid + '\'.');
+				bone.skinningMatrix = new THREE.Matrix4();
+			    	bone.weights = [];
 
 			}