Update Studio js parser

This commit is contained in:
VisualSj 2015-08-20 17:02:41 +08:00
parent 4d9a61569a
commit a4fec3a5e0
2 changed files with 7 additions and 0 deletions

View File

@ -268,6 +268,7 @@
var blendFunc = options["BlendFunc"];
if(blendFunc)
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
return frame;
}
}
];

View File

@ -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;
};