Skip to content

Commit d9c7bf9

Browse files
committed
Merge pull request cocos2d#2904 from VisualSJ/develop-webview
Resource path error
2 parents 9846909 + 127cb99 commit d9c7bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/cocostudio/loader/parsers/compatible.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @returns {*}
4242
*/
4343
widgetFromJsonFile: function(file){
44-
var json = cc.loader.getRes(file);
44+
var json = cc.loader.getRes(cc.path.join(cc.loader.resPath, file));
4545
if(json)
4646
this._fileDesignSizes[file] = cc.size(json["designWidth"]||0, json["designHeight"]||0);
4747

0 commit comments

Comments
 (0)