提交 1b4c1c03 编写于 作者: O OpenShift guest

cleanup code

上级 edd76850
......@@ -428,13 +428,13 @@ THREE.Projector = function () {
_line.z = Math.max( _clippedVertex1PositionScreen.z, _clippedVertex2PositionScreen.z );
_line.material = object.material;
if (object.material.vertexColors === THREE.VertexColors){
_line.vertexColors[0].set(object.geometry.colors[v]);
_line.vertexColors[1].set(object.geometry.colors[v-1]);
}
if (object.material.vertexColors === THREE.VertexColors){
_line.vertexColors[0].set(object.geometry.colors[v]);
_line.vertexColors[1].set(object.geometry.colors[v-1]);
}
_renderData.elements.push( _line );
}
......
......@@ -9,8 +9,7 @@ THREE.RenderableLine = function () {
this.v1 = new THREE.RenderableVertex();
this.v2 = new THREE.RenderableVertex();
this.vertexColors = [ new THREE.Color(), new THREE.Color()];
this.vertexColors = [ new THREE.Color(), new THREE.Color()];
this.material = null;
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册