Pyinstaller support (#93)

* Add main.spec

* Fix issue where fetching supported extensions would crash with no default installation
This commit is contained in:
2024-08-10 14:58:41 -05:00
committed by GitHub
parent 51a5a63944
commit 3b33649f2d
10 changed files with 89 additions and 41 deletions

View File

@@ -1,9 +1,9 @@
class BlenderUI:
@staticmethod
def get_options(instance):
def get_options(system_info):
options = [
{'name': 'engine', 'options': instance.supported_render_engines()},
{'name': 'engine', 'options': system_info.get('engines', [])},
{'name': 'render_device', 'options': ['Any', 'GPU', 'CPU']},
]
return options