Fixed a bug that action texture address error

This commit is contained in:
VisualSj 2015-07-06 17:17:20 +08:00
parent d52006692c
commit 3b69a1726f
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);