7 Commits

Author SHA1 Message Date
Diego Prado Gesto
ff6bc9de4e Fix some more code-style 2018-07-03 13:09:05 +02:00
Ghostkeeper
b9727a33c6
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.
2018-06-15 11:38:11 +02:00
Ghostkeeper
7d98167383
Ignore type errors arising from misinterpretation of DepthFirstIterator type
MyPy requests that this needs to have a __next__ function, but actually Python calls the __iter__ function first and then calls the __next__ function on the result of that. MyPy is wrong here.

Contributes to issue CURA-5330.
2018-06-15 11:30:49 +02:00
Ghostkeeper
105f6d4271
Fix type of self._shader
MyPy was thinking that this variable has type None, which is nonsense because no variable should always have type None.

Contributes to issue CURA-5330.
2018-06-15 11:25:16 +02:00
Diego Prado Gesto
f1b0c6238f CURA-5330 Add return type to some constructors 2018-06-13 11:01:30 +02:00
fieldOfView
e4a416258b Fix code-style and type hinting 2018-03-15 09:03:50 +01:00
fieldOfView
a536da503b Rename DepthPass to PickingPass
The map created by the shader is not strictly a depth map; not only is the "depth" encoded in the rgb channels, but it is also a distance to the camera instead of a "scene depth".
2018-03-13 20:40:41 +01:00