八国语言+eagle图片
This commit is contained in:
1 parent
acc93d5404
commit
3bd3ba7404
46 files changed
+2520
-290
No files matched your search
@@ -10,6 +10,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { pathToFileURL } = require('url');
|
||||
const t = (key, vars) => window.SpineThumbI18n ? window.SpineThumbI18n.t(key, vars) : key;
|
||||
|
||||
const runtimeCache = new Map();
|
||||
// 长动画不截断时间轴,只降低采样密度:18 fps 采样,最多 240 帧。
|
||||
@@ -678,10 +679,10 @@ async function renderThumbnailAuto(options) {
|
||||
try {
|
||||
const animated = await renderAnimatedThumbnail(options);
|
||||
if (animated) return animated;
|
||||
return { ...(await renderStillBuffer(options)), fallback: '骨骼里没有动画' };
|
||||
return { ...(await renderStillBuffer(options)), fallback: t('thumb.fallbackNoAnimation') };
|
||||
} catch (error) {
|
||||
const still = await renderStillBuffer(options);
|
||||
return { ...still, fallback: '动态生成失败:' + ((error && error.message) || error) };
|
||||
return { ...still, fallback: t('thumb.fallbackAnimatedFailed', { error: (error && error.message) || error }) };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user