WIP add default library_name for unknown platforms #104492

Closed
Shane Ambler wants to merge 1 commits from ShaneAmbler/blender-addons:draco-libname into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -33,7 +33,7 @@ def dll_path() -> Path:
'win32': '{}.dll'.format(lib_name),
'linux': 'lib{}.so'.format(lib_name),
'darwin': 'lib{}.dylib'.format(lib_name)
}.get(sys.platform)
}.get(sys.platform, 'lib{}.so'.format(lib_name))
if path is None or library_name is None:
Review

Setting a default library name makes this check unrelevant

Setting a default library name makes this check unrelevant
print_console('WARNING', 'Unsupported platform {}, Draco mesh compression is unavailable'.format(sys.platform))