Compare commits

...

3 Commits
7.1.2 ... 7.1.3

Author SHA1 Message Date
Colin Basnett
0dba7bb262 Incremented version to 7.1.3 2024-11-03 17:56:43 -08:00
Colin Basnett
77cc97107e 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.
2024-11-03 17:56:13 -08:00
Colin Basnett
1f2ec4c76b Fixed a bug where 0 frames could be output for a sequence if the compression ratio was less than 1.0 2024-10-01 20:35:12 -07:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
schema_version = "1.0.0" schema_version = "1.0.0"
id = "io_scene_psk_psa" id = "io_scene_psk_psa"
version = "7.1.2" version = "7.1.3"
name = "Unreal PSK/PSA (.psk/.psa)" name = "Unreal PSK/PSA (.psk/.psa)"
tagline = "Import and export PSK and PSA files used in Unreal Engine" tagline = "Import and export PSK and PSA files used in Unreal Engine"
maintainer = "Colin Basnett <cmbasnett@gmail.com>" maintainer = "Colin Basnett <cmbasnett@gmail.com>"

View File

@@ -155,7 +155,7 @@ def build_psa(context: bpy.types.Context, options: PsaBuildOptions) -> Psa:
# Calculate the frame step based on the compression factor. # Calculate the frame step based on the compression factor.
frame_extents = abs(frame_end - frame_start) frame_extents = abs(frame_end - frame_start)
frame_count_raw = frame_extents + 1 frame_count_raw = frame_extents + 1
frame_count = max(export_sequence.key_quota, int(frame_count_raw * export_sequence.compression_ratio)) frame_count = max(1, max(export_sequence.key_quota, int(frame_count_raw * export_sequence.compression_ratio)))
try: try:
frame_step = frame_extents / (frame_count - 1) frame_step = frame_extents / (frame_count - 1)

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: 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)