mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix rendering depth pass
This commit is contained in:
parent
0caea24afc
commit
73558c9e36
3 changed files with 10 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue