mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2024-11-23 22:40:59 +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:
parent
1f2ec4c76b
commit
77cc97107e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user