From 9f1ad51de527d8dcafd6f5d13f6d8cc8b5919a3f Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Fri, 9 Oct 2026 11:25:13 +0900 Subject: bluebey-studio: テクスチャの下地を書き出す機能を削除 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 案内ページからも下地の説明を削除した。 --- public/bluebey-studio/src/main.js | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'public/bluebey-studio/src/main.js') 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; -- cgit v1.3.1