diff options
author | fieldOfView <aldo@fieldofview.com> | 2018-03-13 21:44:53 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2018-03-13 21:44:53 +0300 |
commit | 73558c9e3695335008cda045c4293e837e1ef3f0 (patch) | |
tree | 5be1d6bc3942ceef575795c72dd0f7e4f0e0d3b7 /plugins/SupportEraser | |
parent | 0caea24afcb8d94fbf32ef330a0d2cc6788be16f (diff) |
Fix rendering depth pass
Diffstat (limited to 'plugins/SupportEraser')
-rw-r--r-- | plugins/SupportEraser/SupportEraser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index 119e598886..4034b524b8 100644 --- a/plugins/SupportEraser/SupportEraser.py +++ b/plugins/SupportEraser/SupportEraser.py @@ -31,8 +31,7 @@ class SupportEraser(Tool): active_camera = self._controller.getScene().getActiveCamera() # Create depth pass for picking - render_width, render_height = active_camera.getWindowSize() - depth_pass = DepthPass(int(render_width), int(render_height)) + depth_pass = DepthPass(active_camera.getViewportWidth(), active_camera.getViewportHeight()) depth_pass.render() distance = depth_pass.getDepthAtPosition(event.x, event.y) |