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

WebGLRenderer: Minor clean up.

上级 ee4ba9d2
......@@ -2104,13 +2104,9 @@ THREE.WebGLRenderer = function ( parameters ) {
material.numSupportedMorphTargets = 0;
var id, base = 'morphTarget';
for ( var i = 0; i < _this.maxMorphTargets; i ++ ) {
id = base + i;
if ( attributes[ id ] >= 0 ) {
if ( attributes[ 'morphTarget' + i ] >= 0 ) {
material.numSupportedMorphTargets ++;
......@@ -2124,13 +2120,9 @@ THREE.WebGLRenderer = function ( parameters ) {
material.numSupportedMorphNormals = 0;
var id, base = 'morphNormal';
for ( i = 0; i < _this.maxMorphNormals; i ++ ) {
id = base + i;
if ( attributes[ id ] >= 0 ) {
if ( attributes[ 'morphNormal' + i ] >= 0 ) {
material.numSupportedMorphNormals ++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册