teleportxr 1.0.45 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/client.js CHANGED
@@ -127,7 +127,10 @@ class Client {
127
127
  this.clientDynamicLighting=new core.ClientDynamicLighting();
128
128
  // Session is (re)starting; the client has zero state, so retract any
129
129
  // outstanding ack tracking from a previous session and force a resend.
130
- this.currentOriginState = new OriginState();
130
+ // Clear acknowledgement state but preserve the origin uid that was already set.
131
+ this.currentOriginState.acknowledged = false;
132
+ this.currentOriginState.serverTimeSentUs = BigInt(0);
133
+ this.currentOriginState.ackId = 0;
131
134
  this.currentLightingState = new LightingState();
132
135
  this.setupCommand.float32_draw_distance=10.0;
133
136
  if(this.scene)
@@ -42,7 +42,7 @@ class ClientManager
42
42
  return null;
43
43
  }
44
44
  var origin_uid=this.addClientNodeAndReturnOriginUid(clientID);
45
- if(origin_uid==0){
45
+ if(origin_uid==0) {
46
46
  error("Failed to create a root node for client "+clientID);
47
47
  return null;
48
48
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "name": "teleportxr",
17
17
  "description": "Teleport Spatial Server on node.js",
18
- "version": "1.0.45",
18
+ "version": "1.0.47",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/simul/teleport-nodejs.git"