feat(importing): Add better FBX bone orientations operator and accessory bone deletion

- Add new `apply_better_fbx_orientations` operator as standalone UI action for applying bone orientations
- Add "Delete Accessory Bones" property and UI toggle in EXTRAS panel for optional bone cleanup
- Move bone orientation logic from `modify_armature` execute method to new dedicated operator
- Refactor accessory bone deletion into separate method callable from new operator
- Update panel UI to show better FBX bones operator with delete accessory bones toggle option
- Register new operator in `__init__.py` and export from modifyarmature module
- Update interface dictionaries (English, Japanese, Chinese) with new UI strings
- Enable better FBX orientations and accessory deletion only for Koikatsu armature (C) selection
- Add detailed logging for bone operation counts and status tracking
This commit is contained in:
2025-12-07 12:47:55 +08:00
parent d8015c348f
commit 63e9a6fb00
11 changed files with 127 additions and 37 deletions

View File

@@ -112,6 +112,11 @@ translation_dictionary = {
'rigify_convert' : "转换为Rigify",
'rigify_convert_tt' : "运行几个脚本将KKBP骨架转换为兼容Rigify的骨架",
'better_fbx_bones' : "应用Better FBX骨骼方向",
'better_fbx_bones_tt' : "将骨骼方向修改为更自然的方向。这会让骨骼沿着肢体方向延伸,而不是都朝上",
'delete_accessory_bones' : "删除配饰骨骼",
'delete_accessory_bones_tt' : "勾选后,应用骨骼方向时会删除头发、衣服等配饰骨骼,只保留核心人体骨骼",
'sep_eye' : "分离眼睛和眉毛",
'sep_eye_tt' : "将眼睛和眉毛从身体对象中分离出来,并将形态键链接到身体对象。当您想让眼睛或眉毛通过头发透视时,该功能非常有用",
'bone_visibility' : "更新骨骼可见性",