1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2024-11-24 06:50:13 +01:00

Fix #113: is_bdk_addon_loaded now actually works correctly

This was causing an error for some people because of the bizarre
behavior around `getattr` and `setattr` in `bpy.ops` always reporting
that the BDK was installed.
This commit is contained in:
Colin Basnett 2024-11-03 17:56:13 -08:00
parent 1f2ec4c76b
commit 77cc97107e

View File

@ -164,4 +164,4 @@ def get_export_bone_names(armature_object: Object, bone_filter_mode: str, bone_c
def is_bdk_addon_loaded() -> bool:
return bpy.ops.bdk is not None and bpy.ops.bdk.link_material is not None
return 'bdk' in dir(bpy.ops)