Promote the kept-aside custom map back to the active map. No defaults reset.
()
| 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 | |
| 1152 | function resetTextureSmoothing() { |
| 1153 | settings.textureSmoothing = 0; |