mirror of https://github.com/axmolengine/axmol.git
Update Studio js parser
This commit is contained in:
parent
4d9a61569a
commit
a4fec3a5e0
|
@ -268,6 +268,7 @@
|
|||
var blendFunc = options["BlendFunc"];
|
||||
if(blendFunc)
|
||||
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -1312,12 +1312,18 @@
|
|||
node.setBlendFunc(new cc.BlendFunc(blendFunc["Src"] || 0, blendFunc["Dst"] || 0));
|
||||
|
||||
parser.generalAttributes(node, json);
|
||||
var color = json["CColor"];
|
||||
if(color && (color["R"] !== undefined || color["G"] !== undefined || color["B"] !== undefined))
|
||||
node.setColor(getColor(color));
|
||||
return node;
|
||||
};
|
||||
|
||||
parser.initSkeletonNode = function(json){
|
||||
var node = new ccs.SkeletonNode();
|
||||
parser.generalAttributes(node, json);
|
||||
var color = json["CColor"];
|
||||
if(color && (color["R"] !== undefined || color["G"] !== undefined || color["B"] !== undefined))
|
||||
node.setColor(getColor(color));
|
||||
return node;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue