mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix some more code-style
This commit is contained in:
parent
ae7875a756
commit
ff6bc9de4e
4 changed files with 9 additions and 4 deletions
|
|
@ -69,6 +69,7 @@ class PickingPass(RenderPass):
|
|||
## Get the world coordinates of a picked point
|
||||
def getPickedPosition(self, x: int, y: int) -> Vector:
|
||||
distance = self.getPickedDepth(x, y)
|
||||
ray = self._scene.getActiveCamera().getRay(x, y)
|
||||
|
||||
return ray.getPointAlongRay(distance)
|
||||
camera = self._scene.getActiveCamera()
|
||||
if camera:
|
||||
return camera.getRay(x, y).getPointAlongRay(distance)
|
||||
return Vector()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue