Closed Jayden9912 closed 6 months ago
Hi. Naurril.
May I know how should I save the world after pasting the bounding box? https://github.com/naurril/SUSTechPOINTS/blob/1b2769ead41a3bcec1b1d0811da5d1c8b4f5f5d8/src/editor/js/editor.js#L575-L586
I have commented out L579 - L583 to avoid the error from popping out when there is no point in the bounding box. However, the box is not being saved automatically. How should I call the function in save.js to save the world (all the bounding boxes)?
this is a bug, could you try adding an 'else' branch and call this.onBoxChanged(box),
this.onBoxChanged(box)
reference code, setModified is used to save automatically: code
setModified
I see, thank you!
Hi. Naurril.
May I know how should I save the world after pasting the bounding box? https://github.com/naurril/SUSTechPOINTS/blob/1b2769ead41a3bcec1b1d0811da5d1c8b4f5f5d8/src/editor/js/editor.js#L575-L586
I have commented out L579 - L583 to avoid the error from popping out when there is no point in the bounding box. However, the box is not being saved automatically. How should I call the function in save.js to save the world (all the bounding boxes)?