Merge pull request #12698 from VisualSJ/v3.7-release

[ci skip] Fixed a bug that action texture address error
This commit is contained in:
pandamicro 2015-07-07 13:57:30 +08:00
commit 701df24301
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ ccs._parser = cc.Class.extend({
return json["widgetTree"];
},
parse: function(file, json){
var resourcePath = this._dirname(file);
parse: function(file, json, resourcePath){
resourcePath = resourcePath || this._dirname(file);
this.pretreatment(json, resourcePath);
var node = this.parseNode(this.getNodeJson(json), resourcePath, file);
node && this.deferred(json, resourcePath, node, file);