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

@@ -108,6 +108,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' : "EyesやEyebrowsやBodyのオブジェクトから別々になって",
'sep_eye_tt' : "BodyのオブジェクトからEyesやEyebrowsマテリアルを別のオブジェクトを別々にして、シェイプ キーをBodyオブジェクトにリンクされる",
'bone_visibility' : "現在の服のボーンを表示して",