forked from OpenWF/SpaceNinjaServer
codify assumption
This commit is contained in:
parent
41623807e1
commit
508440e0a6
@ -17,7 +17,8 @@ export const changeDojoRootController: RequestHandler = async (req, res) => {
|
||||
|
||||
// Example POST body: {"pivot":[0, 0, -64],"components":"{\"670429301ca0a63848ccc467\":{\"R\":[0,0,0],\"P\":[0,3,32]},\"6704254a1ca0a63848ccb33c\":{\"R\":[0,0,0],\"P\":[0,9.25,-32]},\"670429461ca0a63848ccc731\":{\"R\":[-90,0,0],\"P\":[-47.999992370605,3,16]}}"}
|
||||
if (req.body) {
|
||||
logger.warn(`ignoring changeDojoRoot body, decos may end up beyond room bounds: ${String(req.body)}`);
|
||||
logger.debug(`data provided to ${req.path}: ${String(req.body)}`);
|
||||
throw new Error("dojo reparent operation should not need deco repositioning"); // because we always provide SortId
|
||||
}
|
||||
|
||||
const idToNode: Record<string, INode> = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user