Skip to content

Commit 521e1f0

Browse files
committed
Should outline even if fillcolor is fully transparent
In Cocos2D-ios, you can draw a polygon with only a border but a transparent fillcolor. the same should be true here.
1 parent efef0b2 commit 521e1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/draw_nodes/CCDrawNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ cc.DrawNodeWebGL = cc.Node.extend(/** @lends cc.DrawNodeWebGL# */{
391391
var offset = cc.v2fmult(cc.v2fadd(n1, n2), 1.0 / (cc.v2fdot(n1, n2) + 1.0));
392392
extrude[i] = {offset: offset, n: n2};
393393
}
394-
var outline = (borderColor.a > 0.0 && borderWidth > 0.0);
394+
var outline = (borderWidth > 0.0);
395395

396396
var triangleCount = 3 * count -2;
397397
var vertexCount = 3 * triangleCount;

0 commit comments

Comments
 (0)