@archvisioninc/canvas 3.3.1 → 3.3.3

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.
@@ -316,7 +316,7 @@ export const updateMaterial = inboundData => {
316
316
  material.name = newId;
317
317
  if (Array.isArray(scene.metadata.selectedMaterials) && scene.metadata.selectedMaterials.length > 0) {
318
318
  // We currently only support one selectedMaterial at a time so we should set the changed material to selected
319
- scene.metadata.selectedMaterials = [material];
319
+ newMetaDataEntry('selectedMaterials', [material]);
320
320
  }
321
321
  }
322
322
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -377,7 +377,7 @@ export const updateMaterial = inboundData => {
377
377
 
378
378
  if (Array.isArray(scene.metadata.selectedMaterials) && scene.metadata.selectedMaterials.length > 0) {
379
379
  // We currently only support one selectedMaterial at a time so we should set the changed material to selected
380
- scene.metadata.selectedMaterials = [ material ];
380
+ newMetaDataEntry('selectedMaterials', [ material ]);
381
381
  }
382
382
  }
383
383