mirror of https://github.com/axmolengine/axmol.git
Fixed a bug that is SingleNode setColor is null
This commit is contained in:
parent
893d39c543
commit
9f52b1e6fb
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue