修改粒子命名规则
This commit is contained in:
1 parent
1ecbb6fc48
commit
aabf4ff693
10 files changed
+235
-97
No files matched your search
@@ -67,7 +67,7 @@ const source = `
|
||||
excludeEmptyAnimations: false, fileName: 'verify.json',
|
||||
}
|
||||
const poolResult = buildSpineJson({ systems: [poolSystem], timeline, settings: poolSettings })
|
||||
const poolBone = poolResult.json.animations.animation.bones._particle_000
|
||||
const poolBone = poolResult.json.animations.animation.bones.verify_0
|
||||
const poolFramesAt = poolBone.translate.map((key) => Math.round(key.time * 30))
|
||||
if (JSON.stringify(poolFramesAt) !== JSON.stringify([0, 4, 10, 19])) {
|
||||
failures++
|
||||
@@ -112,8 +112,8 @@ const source = `
|
||||
return frame === 30 || frame === 110
|
||||
}).map((key) => Math.round(key.time * 30))
|
||||
const expectedBoundaries = JSON.stringify([30, 110])
|
||||
const loopBone = loopAnimation.bones._particle_000
|
||||
const loopSlot = loopAnimation.slots._particle_000_image_normal
|
||||
const loopBone = loopAnimation.bones.loop_0
|
||||
const loopSlot = loopAnimation.slots.loop_0_normal
|
||||
for (const channel of ['translate', 'rotate', 'scale']) {
|
||||
if (JSON.stringify(boundaryFramesOf(loopBone[channel] || [])) !== expectedBoundaries) {
|
||||
failures++
|
||||
|
||||
Reference in new issue
Block a user