浏览代码

following PR #13787 syntax modification

Nicolas Debeissat 7 年之前
父节点
当前提交
693be12514
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/SVGLoader.js

+ 1 - 1
examples/js/loaders/SVGLoader.js

@@ -459,7 +459,7 @@ THREE.SVGLoader.prototype = {
 
 
 		function parseStyle( node, style ) {
 		function parseStyle( node, style ) {
 
 
-			if (node.style.fill !== '') style.fill = node.style.fill;
+			if ( node.style.fill !== '' ) style.fill = node.style.fill;
 
 
 		}
 		}