Browse Source

SVGLoader: Handle command z.

Mr.doob 7 years ago
parent
commit
bb4398b2eb
1 changed files with 5 additions and 0 deletions
  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;
+
 				}
 
 			}