Skip to content

hkb_editor.workflows.fix_common_problems

clear_invalid_pointers

clear_invalid_pointers(behavior: HavokBehavior) -> int

Unset pointers referencing object IDs that don't exist. Returns how many.

fix_array_null_pointers

fix_array_null_pointers(behavior: HavokBehavior) -> int

Drop unset pointers from generator arrays. Returns how many.

fix_clip_animation_ids

fix_clip_animation_ids(behavior: HavokBehavior) -> int

Point every clip generator at the right animation index.

Missing animations are registered along the way. Returns how many clip generators were corrected.

fix_common_problems

fix_common_problems(
    behavior: HavokBehavior, fixes: list[str]
) -> int

Run the named fixes in one transaction. Returns the total issue count.

remove_orphans

remove_orphans(behavior: HavokBehavior) -> int

Delete objects unreachable from the behavior root. Returns how many.

Ko-fi donations