Commit b20057b8 authored by Florian Rhiem's avatar Florian Rhiem

Minor bugfixes

- Visualization now uses the assigned context in the paint method
- Here-docs in build-flags are terminated correctly
parent ea67f2ba
......@@ -73,7 +73,8 @@ import numpy
import os.path
numpy_package_path = os.path.dirname(numpy.__file__)
print('-I{}'.format(os.path.join(numpy_package_path, 'core/include')))
EOF)
EOF
)
eval "${1}=\"${INC_FLAGS}\""
eval "${2}=\"\""
......
......@@ -229,6 +229,7 @@ class Visualization(object):
"""
Refresh the OpenGL scene.
"""
self.assigned_opengl_context.makeCurrent()
self.width = width
self.height = height
self.set_camera(width, height)
......@@ -238,6 +239,7 @@ class Visualization(object):
gr3.usecurrentframebuffer()
gr3.drawimage(0, width*device_pixel_ratio, 0, height*device_pixel_ratio,
width, height, gr3.GR3_Drawable.GR3_DRAWABLE_OPENGL)
self.assigned_opengl_context.doneCurrent()
def save_screenshot(self, file_name, width=3840, height=2160, first=True, last=True):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment