Skip to content

Commit

Permalink
fixed render camera in editor (#5574)
Browse files Browse the repository at this point in the history
  • Loading branch information
2youyou2 committed Oct 21, 2019
1 parent eb5b33a commit 4dc3c50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cocos2d/core/camera/CCCamera.js
Expand Up @@ -741,7 +741,12 @@ let Camera = cc.Class({

let targetTexture = this._targetTexture;
if (targetTexture) {
height = cc.visibleRect.height;
if (CC_EDITOR) {
height = cc.engine.getDesignResolutionSize().height;
}
else {
height = cc.visibleRect.height;
}
}

let fov = this._fov * cc.macro.RAD;
Expand Down

0 comments on commit 4dc3c50

Please sign in to comment.