提交 bf730ab9 编写于 作者: M Mr.doob

Added base for new Loader.

上级 45630f93
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.JSONLoader = function () {
THREE.Loader.call( this );
};
THREE.JSONLoader.prototype = new THREE.Loader();
THREE.JSONLoader.prototype.constructor = THREE.JSONLoader;
THREE.JSONLoader.prototype.supr = THREE.Loader.prototype;
此差异已折叠。
此差异已折叠。
......@@ -20,7 +20,7 @@ THREE.Mesh = function ( geometry, materials ) {
if ( this.geometry ) {
// calc bound radius
if( !this.geometry.boundingSphere ) {
this.geometry.computeBoundingSphere();
......@@ -33,14 +33,14 @@ THREE.Mesh = function ( geometry, materials ) {
// setup morph targets
if( this.geometry.morphTargets.length ) {
this.morphTargetBase = -1;
this.morphTargetForcedOrder = [];
this.morphTargetInfluences = [];
this.morphTargetDictionary = {};
for( var m = 0; m < this.geometry.morphTargets.length; m++ ) {
this.morphTargetInfluences.push( 0 );
this.morphTargetDictionary[ this.geometry.morphTargets[ m ].name ] = m;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册