Skip to content

Commit

Permalink
one-line optimization that prevents camera coordinates from being sen…
Browse files Browse the repository at this point in the history
…d on serialization
  • Loading branch information
sdumetz committed Dec 4, 2023
1 parent 54191de commit ff415d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client/nodes/NVNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit ff415d7

Please sign in to comment.