浏览代码

SVGLoader: Log unsupported commands only.

Mr.doob 7 年之前
父节点
当前提交
0c012183b9
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      examples/js/loaders/SVGLoader.js

+ 4 - 2
examples/js/loaders/SVGLoader.js

@@ -60,7 +60,6 @@ THREE.SVGLoader.prototype = {
 
 				default:
 					console.log( node );
-					break;
 
 			}
 
@@ -75,7 +74,7 @@ THREE.SVGLoader.prototype = {
 
 			var d = node.getAttribute( 'd' );
 
-			console.log( d );
+			// console.log( d );
 
 			var commands = d.match( /[a-df-z][^a-df-z]*/ig );
 
@@ -165,6 +164,9 @@ THREE.SVGLoader.prototype = {
 						path.currentPath.autoClose = true;
 						break;
 
+					default:
+						console.log( command );
+
 				}
 
 			}