Fix type of QtRenderer

Because we're calling getWindowSize on it so it must be the QtRenderer, not the Renderer.

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-15 11:38:11 +02:00
parent ab32d64c01
commit b9727a33c6
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -3,7 +3,7 @@
from typing import Optional, TYPE_CHECKING
from UM.Application import Application
from UM.Qt.QtApplication import QtApplication
from UM.Math.Vector import Vector
from UM.Resources import Resources
@ -24,10 +24,10 @@ class PickingPass(RenderPass):
def __init__(self, width: int, height: int) -> None:
super().__init__("picking", width, height)
self._renderer = Application.getInstance().getRenderer()
self._renderer = QtApplication.getInstance().getRenderer()
self._shader = None #type: Optional[ShaderProgram]
self._scene = Application.getInstance().getController().getScene()
self._scene = QtApplication.getInstance().getController().getScene()
def render(self) -> None:
if not self._shader: