Explorar o código

Update src/objects/SkinnedMesh.js

geometry test
stoomm %!s(int64=12) %!d(string=hai) anos
pai
achega
45ff0f4fb8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/objects/SkinnedMesh.js

+ 1 - 1
src/objects/SkinnedMesh.js

@@ -20,7 +20,7 @@ THREE.SkinnedMesh = function ( geometry, material, useVertexTexture ) {
 
 	var b, bone, gbone, p, q, s;
 
-	if ( this.geometry.bones !== undefined ) {
+	if ( this.geometry && this.geometry.bones !== undefined ) {
 
 		for ( b = 0; b < this.geometry.bones.length; b ++ ) {