소스 검색

SVGLoader: Handle command z.

Mr.doob 7 년 전
부모
커밋
bb4398b2eb
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      examples/js/loaders/SVGLoader.js

+ 5 - 0
examples/js/loaders/SVGLoader.js

@@ -160,6 +160,11 @@ THREE.SVGLoader.prototype = {
 						point.y += numbers[ 5 ];
 						break;
 
+					case 'Z':
+					case 'z':
+						path.currentPath.autoClose = true;
+						break;
+
 				}
 
 			}