Merge pull request #13485 from VisualSJ/v3.8-webIndex

Update Studio js parser
This commit is contained in:
pandamicro 2015-08-20 18:02:55 +08:00
commit a54f01ce2b
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;
};