diff --git a/blenderproc/python/writer/BopWriterUtility.py b/blenderproc/python/writer/BopWriterUtility.py index c21def0c4..81c268e78 100644 --- a/blenderproc/python/writer/BopWriterUtility.py +++ b/blenderproc/python/writer/BopWriterUtility.py @@ -12,6 +12,7 @@ import cv2 import bpy from mathutils import Matrix +import sys from blenderproc.python.types.MeshObjectUtility import MeshObject, get_all_mesh_objects from blenderproc.python.writer.WriterUtility import _WriterUtility @@ -19,7 +20,9 @@ from blenderproc.python.utility.SetupUtility import SetupUtility from blenderproc.python.utility.MathUtility import change_target_coordinate_frame_of_transformation_matrix -os.environ['PYOPENGL_PLATFORM'] = 'egl' +# EGL is not available under windows +if sys.platform in ["linux", "linux2"]: + os.environ['PYOPENGL_PLATFORM'] = 'egl' # pylint: disable=wrong-import-position import pyrender # pylint: enable=wrong-import-position diff --git a/blenderproc/version.py b/blenderproc/version.py index 32333bfda..a77fa85d6 100644 --- a/blenderproc/version.py +++ b/blenderproc/version.py @@ -1,2 +1,2 @@ """ Define the current BlenderProc version. """ -__version__ = '2.6.0' +__version__ = '2.6.1' diff --git a/change_log.md b/change_log.md index 9ea964c6e..2959ad8a4 100644 --- a/change_log.md +++ b/change_log.md @@ -7,6 +7,10 @@ # Version History +## Version 2.6.1 26th August 2023 + +- Fixes pyrender usage on windows, EGL / headless rendering is now only used on linux + ## Version 2.6.0 17th August 2023 - BOP toolkit is now tightly integrated into the the BOP writer: