Skip to content

Commit 3fe12a0

Browse files
committed
Add method documentation
CURA-12309
1 parent 1ec20a2 commit 3fe12a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UM/View/GL/OpenGL.py

+4
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ def createIndexBuffer(self, mesh: "MeshData", **kwargs: Any):
341341
__instance = None # type: OpenGL
342342

343343
def activateContext(self):
344+
"""
345+
Make sure the OpenGL is currently active. This should be called every time before starting an OpenGL rendering
346+
with this object
347+
"""
344348
from UM.Qt.QtApplication import QtApplication
345349
self._context.makeCurrent(QtApplication.getInstance().getMainWindow())
346350

0 commit comments

Comments
 (0)