Open soccerob opened 8 years ago
Note, I was able to "fix" this issue on Canvas by creating a variable for the node that is passed in to the ClippingNode constructor, and setting the position of that node to the preferred x and y. It seems I'll have to set some conditional blocks based on whether it's WebGL or Canvas.... would still prefer to have this fixed behind the scenes if it's possible.
var testNode = new cc.LayerColor(cc.color.WHITE, 200, 200);
testNode.x = bgWhite.x;
testNode.y = bgWhite.y;
var maskLayer = new cc.ClippingNode( testNode );
maskLayer.boundingBox().x = bgWhite.x;
maskLayer.boundingBox().y = bgWhite.y;
Steps to Reproduce: