MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / _activateCustomMap

Function _activateCustomMap

js/main.js:1143–1150  ·  view source on GitHub ↗

Promote the kept-aside custom map back to the active map. No defaults reset.

()

Source from the content-addressed store, hash-verified

1141 targetIdx = IMAGE_PRESETS.findIndex(p => p.name === persistedName);
1142 if (!(targetIdx >= 0 && PRESETS[targetIdx])) targetIdx = -1;
1143 }
1144 if (targetIdx < 0) targetIdx = IMAGE_PRESETS.findIndex(p => p.name === DEFAULT_PRESET_NAME);
1145 if (targetIdx >= 0 && PRESETS[targetIdx]) {
1146 selectPreset(targetIdx, _presetSwatches[targetIdx], applyDefaults);
1147 }
1148}).catch(err => console.error('Failed to load thumbnails:', err));
1149
1150// ── Preset grid ───────────────────────────────────────────────────────────────
1151
1152function resetTextureSmoothing() {
1153 settings.textureSmoothing = 0;

Callers 1

main.jsFile · 0.85

Calls 1

updatePreviewFunction · 0.85

Tested by

no test coverage detected