Skip to content

Commit e78a874

Browse files
authored
Merge pull request #13787 from ndebeiss/SVGLoadAndRender
SVGLoader: Improved style parsing
2 parents ca023aa + 0536258 commit e78a874

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/js/loaders/SVGLoader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ THREE.SVGLoader.prototype = {
4242
break;
4343

4444
case 'path':
45+
parseStyle( node, style );
4546
paths.push( parsePathNode( node, style ) );
4647
break;
4748

@@ -470,7 +471,7 @@ THREE.SVGLoader.prototype = {
470471

471472
}
472473

473-
if ( style.fill !== '' ) {
474+
if ( style.fill !== '' && style.fill !== 'none' ) {
474475

475476
return style.fill;
476477

0 commit comments

Comments
 (0)