From ff415d78449f9bb4c646d03ad7e5a77a57e3ac8c Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Mon, 13 Nov 2023 14:53:12 +0100 Subject: [PATCH] one-line optimization that prevents camera coordinates from being send on serialization --- source/client/nodes/NVNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/nodes/NVNode.ts b/source/client/nodes/NVNode.ts index 1d972888..99ee0b3c 100644 --- a/source/client/nodes/NVNode.ts +++ b/source/client/nodes/NVNode.ts @@ -150,7 +150,7 @@ export default class NVNode extends Node document.nodes = document.nodes || []; const nodeIndex = document.nodes.length; - const node = this.transform.toData(); + const node = ((this.camera)? {} : this.transform.toData()); document.nodes.push(node); pathMap.set(this.transform, `node/${nodeIndex}`);