Fixed a bug that is SingleNode setColor is null

This commit is contained in:
VisualSj 2015-07-09 11:49:11 +08:00
parent 893d39c543
commit 9f52b1e6fb
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@
var node = new cc.Node();
this.generalAttributes(node, json);
var color = json["CColor"];
if(color != null)
node.setColor(getColor(color));
return node;
};