mirror of https://github.com/axmolengine/axmol.git
Fix cocos2d/cocos2d-html5#3156 setBlendFunc issue in parser
This commit is contained in:
parent
2dde476aa5
commit
246eab11a1
|
@ -266,7 +266,7 @@
|
|||
handle: function(options){
|
||||
var frame = new ccs.BlendFuncFrame();
|
||||
var blendFunc = options["BlendFunc"];
|
||||
if(blendFunc)
|
||||
if(blendFunc && blendFunc["Src"] !== undefined && blendFunc["Dst"] !== undefined)
|
||||
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
|
||||
return frame;
|
||||
}
|
||||
|
|
|
@ -1311,7 +1311,7 @@
|
|||
node.setDebugDrawLength(length);
|
||||
|
||||
var blendFunc = json["BlendFunc"];
|
||||
if(blendFunc)
|
||||
if(blendFunc && blendFunc["Src"] !== undefined && blendFunc["Dst"] !== undefined)
|
||||
node.setBlendFunc(new cc.BlendFunc(blendFunc["Src"] || 0, blendFunc["Dst"] || 0));
|
||||
|
||||
parser.generalAttributes(node, json);
|
||||
|
|
2
web
2
web
|
@ -1 +1 @@
|
|||
Subproject commit c3ef2f2a28014089f6a8fc5b2fe1cd19ae67b0ad
|
||||
Subproject commit 441aa2e47a0b347f7b16a16232a203e4d65a699f
|
Loading…
Reference in New Issue