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

Clean up.

上级 b635f258
......@@ -353,9 +353,11 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
}
var attribute;
if ( geometry.verticesNeedUpdate === true ) {
var attribute = this.attributes.position;
attribute = this.attributes.position;
if ( attribute !== undefined ) {
......@@ -370,7 +372,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
if ( geometry.normalsNeedUpdate === true ) {
var attribute = this.attributes.normal;
attribute = this.attributes.normal;
if ( attribute !== undefined ) {
......@@ -385,7 +387,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
if ( geometry.colorsNeedUpdate === true ) {
var attribute = this.attributes.color;
attribute = this.attributes.color;
if ( attribute !== undefined ) {
......@@ -400,7 +402,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
if ( geometry.uvsNeedUpdate ) {
var attribute = this.attributes.uv;
attribute = this.attributes.uv;
if ( attribute !== undefined ) {
......@@ -415,7 +417,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
if ( geometry.lineDistancesNeedUpdate ) {
var attribute = this.attributes.lineDistance;
attribute = this.attributes.lineDistance;
if ( attribute !== undefined ) {
......
......@@ -34,8 +34,8 @@ THREE.Geometry = function () {
// update flags
this.verticesNeedUpdate = false;
this.elementsNeedUpdate = false;
this.verticesNeedUpdate = false;
this.uvsNeedUpdate = false;
this.normalsNeedUpdate = false;
this.colorsNeedUpdate = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册