@archvisioninc/canvas 2.5.0 → 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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import * as BABYLON from 'babylonjs';
|
|
3
2
|
import * as MATERIALS from 'babylonjs-materials';
|
|
4
3
|
import * as BABYLONGUI from 'babylonjs-gui';
|
|
@@ -64,6 +63,10 @@ const tweakSceneForShaderball = () => {
|
|
|
64
63
|
if (yAxis) yAxis.isVisible = false;
|
|
65
64
|
if (zAxis) zAxis.isVisible = false;
|
|
66
65
|
if (ground) ground.isVisible = false;
|
|
66
|
+
const mainMaterial = {
|
|
67
|
+
materialId: 'material'
|
|
68
|
+
};
|
|
69
|
+
newMetaDataEntry('selectedMaterials', [mainMaterial]);
|
|
67
70
|
prepareMaterialCamera();
|
|
68
71
|
props.clearNotifications?.();
|
|
69
72
|
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import * as BABYLON from 'babylonjs';
|
|
3
2
|
import * as MATERIALS from 'babylonjs-materials';
|
|
4
3
|
import * as BABYLONGUI from 'babylonjs-gui';
|
|
@@ -112,6 +111,9 @@ const tweakSceneForShaderball = () => {
|
|
|
112
111
|
if (zAxis) zAxis.isVisible = false;
|
|
113
112
|
if (ground) ground.isVisible = false;
|
|
114
113
|
|
|
114
|
+
const mainMaterial = { materialId: 'material' };
|
|
115
|
+
|
|
116
|
+
newMetaDataEntry('selectedMaterials', [ mainMaterial ]);
|
|
115
117
|
prepareMaterialCamera();
|
|
116
118
|
props.clearNotifications?.();
|
|
117
119
|
};
|
package/src/scenes/App/App.js
CHANGED