Skip to content

Commit 0c3c60f

Browse files
authored
Merge pull request #3449 from giuseppelt/patch-1
Fix DrawNode canvas displayedOpacity rendering
2 parents c54eac9 + 9613342 commit 0c3c60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/shape-nodes/CCDrawNodeCanvasRenderCmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
cc.extend(cc.DrawNode.CanvasRenderCmd.prototype, {
4545
rendering: function (ctx, scaleX, scaleY) {
4646
var wrapper = ctx || cc._renderContext, context = wrapper.getContext(), node = this._node;
47-
var alpha = node._displayedOpacity / 255;
47+
var alpha = this._displayedOpacity / 255;
4848
if (alpha === 0)
4949
return;
5050

0 commit comments

Comments
 (0)