Remove unneeded check for empty extension.

pull/5162/head
Marco Feuerstein 2023-06-28 08:20:49 +02:00
parent 261c7769b8
commit 59f2620164
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ def available_formats():
from ctypes import byref from ctypes import byref
extension_list = structs.String() extension_list = structs.String()
_assimp_lib.dll.aiGetExtensionList(byref(extension_list)) _assimp_lib.dll.aiGetExtensionList(byref(extension_list))
return [e[2:].upper() for e in str(extension_list.data, "utf-8").split(";") if e] return [e[2:].upper() for e in str(extension_list.data, "utf-8").split(";")]
def _finalize_texture(tex, target): def _finalize_texture(tex, target):
setattr(target, "achformathint", tex.achFormatHint) setattr(target, "achformathint", tex.achFormatHint)