Files
blight/tools/dom_polyfill.cjs
Mario 50f496c864 Atmosphäre-Tools, EZ-Tree-Fixes, i18n, AnimSet, Baum-Export
- blight-lang: TextResolver + EN/DE Sprachpakete (TextReference i18n)
- AnimSet: Clips + ActionMap in .animset.json zusammengeführt
- EZ-Tree: Branch-Parameter-Fixes (length/radius/children/force nicht senden,
  twist Grad→Radiant, leaves.size ×5); Ordner-ComboBox mit Auto-Refresh
- Logging beim Baum-Export in allen drei Generatoren (EZ-Tree, Blight, Palme)
- Atmosphäre-Tools: Emitter, Licht, Wasser, Sound-/Musikbereiche, Spiel-Starten
- AnimPreviewState, RetargetingSystem, AnimationLibrary (Animations-Editor)
- Terrain-Transparenz-Fix, Schatten-Fix, ThirdPersonCamera-Fix
- DayNightState, WeatherState, CloudsNode, JmeConsole
- MapIO v6, neue blight-common Modell-Klassen (GameCharacter, NPC, Quests…)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 23:12:46 +02:00

22 lines
490 B
JavaScript

// Minimal DOM polyfill so Three.js TextureLoader doesn't crash in Node.js
global.document = {
createElementNS: (ns, name) => ({
style: {},
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => {},
src: '',
onload: null,
onerror: null
}),
createElement: (name) => ({
style: {},
addEventListener: () => {},
removeEventListener: () => {},
src: '',
onload: null,
onerror: null
})
};
global.window = global;