From f396baf5876eb41bcd2ee34eb65b1f97bb92d530 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Mon, 21 Oct 2013 17:36:46 -0700 Subject: [PATCH] r62 --- build/three.js | 5 +++-- build/three.min.js | 6 +++--- docs/index.html | 2 +- src/Three.js | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build/three.js b/build/three.js index 92da355c6a..d7ca087e41 100644 --- a/build/three.js +++ b/build/three.js @@ -4,7 +4,7 @@ * @author bhouston / http://exocortex.com */ -var THREE = { REVISION: '62dev' }; +var THREE = { REVISION: '62' }; self.console = self.console || { @@ -11195,8 +11195,9 @@ THREE.JSONLoader.prototype.parse = function ( json, texturePath ) { } geometry.bones = json.bones; + // could change this to json.animations[0] or remove completely geometry.animation = json.animation; - + geometry.animations = json.animations; }; function parseMorphing( scale ) { diff --git a/build/three.min.js b/build/three.min.js index 68927d5e50..db4f8f5ccf 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -1,5 +1,5 @@ // three.js - http://github.com/mrdoob/three.js -'use strict';var THREE={REVISION:"62dev"};self.console=self.console||{info:function(){},log:function(){},debug:function(){},warn:function(){},error:function(){}};String.prototype.trim=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")};THREE.extend=function(a,b){if(Object.keys)for(var c=Object.keys(b),d=0,e=c.length;df;f++)l=u[g++],q=r[2*l],l=r[2*l+1],q=new THREE.Vector2(q,l),2!==f&&c.faceVertexUvs[e][h].push(q),0!==f&&c.faceVertexUvs[e][h+1].push(q)}m&&(m=3*u[g++],s.normal.set(w[m++],w[m++],w[m]),n.normal.copy(s.normal));if(t)for(e=0;4>e;e++)m=3*u[g++],t=new THREE.Vector3(w[m++], w[m++],w[m]),2!==e&&s.vertexNormals.push(t),0!==e&&n.vertexNormals.push(t);k&&(k=u[g++],k=z[k],s.color.setHex(k),n.color.setHex(k));if(p)for(e=0;4>e;e++)k=u[g++],k=z[k],2!==e&&s.vertexColors.push(new THREE.Color(k)),0!==e&&n.vertexColors.push(new THREE.Color(k));c.faces.push(s);c.faces.push(n)}else{s=new THREE.Face3;s.a=u[g++];s.b=u[g++];s.c=u[g++];h&&(h=u[g++],s.materialIndex=h);h=c.faces.length;if(e)for(e=0;ef;f++)l=u[g++],q=r[2*l],l=r[2*l+1], q=new THREE.Vector2(q,l),c.faceVertexUvs[e][h].push(q)}m&&(m=3*u[g++],s.normal.set(w[m++],w[m++],w[m]));if(t)for(e=0;3>e;e++)m=3*u[g++],t=new THREE.Vector3(w[m++],w[m++],w[m]),s.vertexNormals.push(t);k&&(k=u[g++],s.color.setHex(z[k]));if(p)for(e=0;3>e;e++)k=u[g++],s.vertexColors.push(new THREE.Color(z[k]));c.faces.push(s)}if(a.skinWeights){g=0;for(i=a.skinWeights.length;g