Skip to content

Commit 09c96d3

Browse files
authored
Merge pull request mrdoob#13796 from ndebeiss/SVGLoadAndRender
SVGLoader: More robust style parsing
2 parents 02145fe + 693be12 commit 09c96d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/js/loaders/SVGLoader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ THREE.SVGLoader.prototype = {
149149
numbers[ 2 ],
150150
numbers[ 3 ],
151151
numbers[ 4 ],
152-
numbers[ 5 ],
152+
numbers[ 5 ]
153153
);
154154
control.x = numbers[ 2 ];
155155
control.y = numbers[ 3 ];
@@ -249,7 +249,7 @@ THREE.SVGLoader.prototype = {
249249
point.x + numbers[ 2 ],
250250
point.y + numbers[ 3 ],
251251
point.x + numbers[ 4 ],
252-
point.y + numbers[ 5 ],
252+
point.y + numbers[ 5 ]
253253
);
254254
point.x += numbers[ 4 ];
255255
point.y += numbers[ 5 ];
@@ -459,7 +459,7 @@ THREE.SVGLoader.prototype = {
459459

460460
function parseStyle( node, style ) {
461461

462-
style.fill = node.style.fill;
462+
if ( node.style.fill !== '' ) style.fill = node.style.fill;
463463

464464
}
465465

0 commit comments

Comments
 (0)