Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix - detect console mode using bpy.app.background #212

Merged
merged 1 commit into from
Aug 4, 2024
Merged

bug fix - detect console mode using bpy.app.background #212

merged 1 commit into from
Aug 4, 2024

Commits on Aug 2, 2024

  1. detect console mode using bpy.app.background

    Resolves errors like below on register if blender is currently in background mode:
    
    Exception in module register(): C:\Users\Andrej\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\screencast_keys\__init__.py
    Traceback (most recent call last):
      File "\Blender\4.2\scripts\modules\addon_utils.py", line 482, in enable
        mod.register()
      File "\Blender\4.2\extensions\blender_org\screencast_keys\__init__.py", line 135, in register
        gpu_utils.shader.ShaderManager.register_shaders()
      File "\Blender\4.2\extensions\blender_org\screencast_keys\gpu_utils\shader.py", line 52, in register_shaders
        gpu.platform.backend_type_get() != 'OPE
    Andrej730 committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    ee88c4f View commit details
    Browse the repository at this point in the history