Skip to content

Commit 3e8ff65

Browse files
committed
Added test for checking the extra_frames feature (issue #122).
1 parent d9e6de2 commit 3e8ff65

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"format_version": "1.8.0",
3+
"animations": {
4+
"animation.extra_frames": {
5+
"animation_length": 1.36,
6+
"bones": {
7+
"root": {
8+
"position": {
9+
"0": [0, 0, 0],
10+
"0.04": [7.5, 12.5, 3.625],
11+
"0.08": [24, 40, 13.667],
12+
"0.12": [40.5, 67.5, 28.875],
13+
"0.16": [48, 80, 48],
14+
"0.2": [47.232, 74.88, 69.547],
15+
"0.24": [43.776, 61.44, 91.04],
16+
"0.28": [35.904, 42.56, 109.76],
17+
"0.32": [21.888, 21.12, 122.987],
18+
"0.36": {
19+
"pre": [0, 0, 128],
20+
"post": [0, 0, 128],
21+
"lerp_mode": "catmullrom"
22+
},
23+
"0.56": {
24+
"post": [-128, -65, 64],
25+
"lerp_mode": "catmullrom"
26+
},
27+
"0.76": {
28+
"post": [-112, -80, 0],
29+
"lerp_mode": "catmullrom"
30+
},
31+
"0.8": [-100.352, -71.68, 0],
32+
"0.84": [-84.096, -51.84, 0],
33+
"0.88": [-62.464, -28.16, 0],
34+
"0.92": [-34.688, -8.32, 0],
35+
"0.96": [0, 0, 0],
36+
"1": [41.216, 0, 0],
37+
"1.04": [83.968, 0, 0],
38+
"1.08": [122.112, 0, 0],
39+
"1.12": [149.504, 0, 0],
40+
"1.16": [160, 0, 0],
41+
"1.2": [143.36, 0, 0],
42+
"1.24": [103.68, 0, 0],
43+
"1.28": [56.32, 0, 0],
44+
"1.32": [16.64, 0, 0],
45+
"1.36": [0, 0, 0]
46+
}
47+
}
48+
},
49+
"loop": true
50+
}
51+
}
52+
}

tests/data/tests_project.blend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b9180f3a069702de81403b875010339ee9a9118a5ab180ec6cf993f59101e496
3-
size 2466513
2+
oid sha256:64aff35894c58f33fe05eacb6401673ef2829f4bed3a0a77214a2e12bc844302
3+
size 2504729

tests/test_animation_export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def make_comparison_files(scene: str) -> tp.Tuple[tp.Dict, str]:
5353
'ArmatureAnimation_ArmatureOrigin',
5454

5555
'animation_interpolation',
56-
'animation_optimization'
56+
'animation_optimization',
57+
'extra_frames'
5758
]
5859

5960
def setup_module(module):

0 commit comments

Comments
 (0)