aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bluebey-studio/src/main.js
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-09 11:25:13 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-09 11:25:13 +0900
commit9f1ad51de527d8dcafd6f5d13f6d8cc8b5919a3f (patch)
treedc0a21b619760b7318c15cf8dbda4f7dd1e25f91 /public/bluebey-studio/src/main.js
parent2720c8441829414e3287176377a3ee3c4dfa80c9 (diff)
bluebey-studio: テクスチャの下地を書き出す機能を削除
案内ページからも下地の説明を削除した。
Diffstat (limited to 'public/bluebey-studio/src/main.js')
-rw-r--r--public/bluebey-studio/src/main.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/public/bluebey-studio/src/main.js b/public/bluebey-studio/src/main.js
index f861ade..e6bc785 100644
--- a/public/bluebey-studio/src/main.js
+++ b/public/bluebey-studio/src/main.js
@@ -1301,8 +1301,6 @@ async function init() {
imageCanvas: (options) => captureImage(options),
savePNG: (options = {}) => savePNG(options),
copyPNG: () => copyPNG(),
- faceMapCanvas: (kind) => faceMapCanvas(kind),
- saveFaceMap: (kind) => saveFaceMap(kind),
addGionStamp: (item) => addGionStamp(item),
saveSettings: () => exporter.downloadText(JSON.stringify(state, null, 2), `bluebey-settings-${exporter.timestamp()}.json`),
loadSettings: (text) => {
@@ -1916,32 +1914,6 @@ async function init() {
toast(`PNGを書き出しました(${result.width}×${result.height})`);
}
- /**
- * The canvas the 下地 export paints on, *without* downloading it. Kept separate
- * from `saveFaceMap` so the in-page round-trip check can look at exactly the
- * pixels the button writes.
- */
- function faceMapCanvas(kind) {
- // A redraw is throttled while the render loop runs (see the loop's
- // `face.flush(now, 26)`), so force any pending one through first or the map
- // would show the expression before last.
- face.flush(performance.now(), 0);
- return exporter.buildFaceMap(face, kind);
- }
-
- async function saveFaceMap(kind) {
- const canvas = faceMapCanvas(kind);
- if (!canvas) {
- toast('この下地は書き出せませんでした');
- return;
- }
- const blob = await exporter.canvasToBlob(canvas);
- const label = kind === 'eyes' ? '目' : '口';
- exporter.downloadBlob(blob, `bluebey-face-${kind}-${exporter.timestamp()}.png`);
- toast(`${label}の下地を書き出しました(${canvas.width}×${canvas.height})。`
- + `この画像に描いて「${label}の画像を読み込む(PNG)」で読み込めます`);
- }
-
/** Hide the gizmo and helpers so they never end up in an export. */
async function withHiddenHelpers(fn) {
const wasVisible = rig.helper.visible;