Skip to content

Commit 781dddc

Browse files
committed
Effect: Specify sys_camera type
This makes code completion work a lot more smoother
1 parent 7b651d5 commit 781dddc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

demosys/effects/effect.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import moderngl as mgl # noqa
22
import os
33
from demosys import resources
4+
from demosys.scene import camera # noqa
45
from pyrr import matrix44, Matrix33, Matrix44, Vector3
56

67

@@ -62,11 +63,8 @@ class Effect:
6263
window_height = 0
6364
window_aspect = 0
6465

65-
# ModernGL context
6666
ctx = None # type: mgl.Context
67-
68-
# System camera
69-
sys_camera = None
67+
sys_camera = None # type: camera.SystemCamera
7068

7169
@property
7270
def effect_name(self):

0 commit comments

Comments
 (0)