Skip to content

Commit c21515e

Browse files
authored
Add support for injecting into .xfbin + fix error with creating new xfbin
1 parent d4c46be commit c21515e

File tree

5 files changed

+147
-170
lines changed

5 files changed

+147
-170
lines changed

__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
bl_info = {
66
"name": "CyberConnect2 ANM XFBIN File Export",
77
"author": "Dei, TheLeonX",
8-
"version": (1, 0, 0),
8+
"version": (1, 0, 1),
99
"blender": (3, 6, 0),
1010
"location": "File > Export",
1111
"description": "Export XFBIN animation files found in CyberConnect2 Naruto Storm and JoJo games.",

blender/addon.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import bpy
22

33

4-
from .exporter import ExportAnmXfbin, menu_func_export
4+
from .exporter import ExportAnmXfbin, menu_export
55

66

77
classes = (
@@ -13,11 +13,11 @@ def register():
1313
for c in classes:
1414
bpy.utils.register_class(c)
1515

16-
bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
16+
bpy.types.TOPBAR_MT_file_export.append(menu_export)
1717

1818

1919
def unregister():
2020
for c in classes:
2121
bpy.utils.unregister_class(c)
2222

23-
bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
23+
bpy.types.TOPBAR_MT_file_export.remove(menu_export)

blender/common/coordinate_converter.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ def rotate_quaternion(seq: List[float]) -> Tuple[int, int, int, int]:
101101
scale = Vector([abs(seq) for seq in values])[:]
102102
return NuccAnmKey.Vec3(tuple(scale))
103103

104-
105-
106-
107-
108104
return values
109105

110106

@@ -135,5 +131,8 @@ def rotate_quaternion(seq: List[float]) -> Tuple[int, int, int, int]:
135131
case 'fov':
136132
return NuccAnmKey.FloatLinear(frame * 100, values[0])
137133

134+
case 'color':
135+
color = [int(x * 255) for x in values]
136+
return NuccAnmKey.Color(tuple(color))
138137

139-
138+
return values

0 commit comments

Comments
 (0)