@archvisioninc/canvas 3.3.4 → 3.3.5

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.
@@ -65,7 +65,7 @@ const performTransform = args => {
65
65
  };
66
66
  const getPositionsChangeAfterGlobal = () => {
67
67
  const userMeshes = getUserMeshes();
68
- const updatedPositions = scene.metadata.meshChangeTracking.map(mesh => {
68
+ const updatedPositions = scene.metadata.meshChangeTracking?.map(mesh => {
69
69
  const userMesh = userMeshes.find(userMesh => userMesh.id === mesh.meshId);
70
70
  const parent = userMesh?.parent;
71
71
  userMesh?.setParent?.(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "3.3.4",
3
+ "version": "3.3.5",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -103,7 +103,7 @@ const performTransform = args => {
103
103
 
104
104
  const getPositionsChangeAfterGlobal = () => {
105
105
  const userMeshes = getUserMeshes();
106
- const updatedPositions = scene.metadata.meshChangeTracking.map(mesh => {
106
+ const updatedPositions = scene.metadata.meshChangeTracking?.map(mesh => {
107
107
  const userMesh = userMeshes.find(userMesh => userMesh.id === mesh.meshId);
108
108
  const parent = userMesh?.parent;
109
109
 
@@ -1205,7 +1205,7 @@ export const updateLighting = inboundData => {
1205
1205
  if (radius !== undefined) {
1206
1206
  light.radius = radius;
1207
1207
  }
1208
-
1208
+
1209
1209
  if (diffuse) {
1210
1210
  const { r, g, b } = diffuse;
1211
1211
  light.diffuse = newColor(r, g, b);