提交 cf6db6c3 编写于 作者: J Juergen Ahting

readability improved

上级 d2f632e9
......@@ -491,15 +491,13 @@ THREE.Path.prototype.toShapes = function( isCCW, noHoles ) {
function toShapesNoHoles( inSubpaths ) {
var i, il;
var tmpPath, tmpShape;
var shapes = [];
for ( i = 0, il = inSubpaths.length; i < il; i ++ ) {
for ( var i = 0, il = inSubpaths.length; i < il; i ++ ) {
tmpPath = inSubpaths[ i ];
var tmpPath = inSubpaths[ i ];
tmpShape = new THREE.Shape();
var tmpShape = new THREE.Shape();
tmpShape.actions = tmpPath.actions;
tmpShape.curves = tmpPath.curves;
......@@ -560,7 +558,7 @@ THREE.Path.prototype.toShapes = function( isCCW, noHoles ) {
var subPaths = extractSubpaths( this.actions );
if ( subPaths.length == 0 ) return [];
if ( noHoles ) return toShapesNoHoles( subPaths );
if ( noHoles === true ) return toShapesNoHoles( subPaths );
var solid, tmpPath, tmpShape, shapes = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册