Fixed is_bdk_addon_loaded function

This commit is contained in:
Colin Basnett
2024-09-09 16:29:20 -07:00
parent b5dba35ac4
commit 1c4967bd67
2 changed files with 4 additions and 5 deletions

View File

@@ -163,7 +163,5 @@ def get_export_bone_names(armature_object: Object, bone_filter_mode: str, bone_c
return bone_names
def is_bdk_addon_loaded():
# TODO: this does not work anymore for *reasons*. Just check if bpy.ops.bdk.link_material exists.
# return addon_utils.check('bdk_addon')[1]
return bpy.ops.bdk.link_material is not None
def is_bdk_addon_loaded() -> bool:
return bpy.ops.bdk is not None and bpy.ops.bdk.link_material is not None