From 9f52b1e6fb6e1337c28b786ab4fc4ff2963bafaf Mon Sep 17 00:00:00 2001 From: VisualSj Date: Thu, 9 Jul 2015 11:49:11 +0800 Subject: [PATCH] Fixed a bug that is SingleNode setColor is null --- .../js-bindings/script/studio/parsers/timelineParser-2.x.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos/scripting/js-bindings/script/studio/parsers/timelineParser-2.x.js b/cocos/scripting/js-bindings/script/studio/parsers/timelineParser-2.x.js index 403eb6c679..eb3f478280 100644 --- a/cocos/scripting/js-bindings/script/studio/parsers/timelineParser-2.x.js +++ b/cocos/scripting/js-bindings/script/studio/parsers/timelineParser-2.x.js @@ -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; };