@archvisioninc/canvas 2.5.1 → 2.5.2

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.
@@ -63,8 +63,10 @@ const tweakSceneForShaderball = () => {
63
63
  if (yAxis) yAxis.isVisible = false;
64
64
  if (zAxis) zAxis.isVisible = false;
65
65
  if (ground) ground.isVisible = false;
66
- const mainMaterial = scene.getMaterialById('material');
67
- newMetaDataEntry('selectedMaterial', mainMaterial?.id);
66
+ const mainMaterial = {
67
+ materialId: 'material'
68
+ };
69
+ newMetaDataEntry('selectedMaterials', [mainMaterial]);
68
70
  prepareMaterialCamera();
69
71
  props.clearNotifications?.();
70
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -111,9 +111,9 @@ const tweakSceneForShaderball = () => {
111
111
  if (zAxis) zAxis.isVisible = false;
112
112
  if (ground) ground.isVisible = false;
113
113
 
114
- const mainMaterial = scene.getMaterialById('material');
114
+ const mainMaterial = { materialId: 'material' };
115
115
 
116
- newMetaDataEntry('selectedMaterial', mainMaterial?.id);
116
+ newMetaDataEntry('selectedMaterials', [ mainMaterial ]);
117
117
  prepareMaterialCamera();
118
118
  props.clearNotifications?.();
119
119
  };