You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
afd0a4fa16
Adds a public method that rebuilds the active room's floor geometry from an in-memory model string + wallHeight without touching the server. Same pipeline as the wire-driven onRoomModelEvent (FloorHeightMapMessageParser -> _planeParser -> wallGeometry), but instead of going through RoomEngine.createRoomInstance (which is a no-op on a room that already exists) it routes the resulting RoomMapData through the room object's ObjectRoomMapUpdateMessage channel - the same mechanism RoomPreviewer.updateRoomPlanes uses for its iso preview. Result: the visualization rebuilds in place and existing furniture/avatars are preserved. Refactor: extracted the parser->planeParser->wallGeometry- >RoomMapData work from onRoomModelEvent into a private _rebuildFloorGeometry(parser) helper so the wire handler and the new public method share an implementation. Intended use: tools that need a live in-room preview of a floor edit before committing it server-side (e.g. the React floor-plan editor's live-preview mode). The wire UpdateFloorPropertiesMessageComposer remains the source of truth - call applyFloorModelLocally only for transient client-side preview.