@babylonjs/inspector 6.10.0 → 6.11.1
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.
@@ -47048,6 +47048,7 @@ class PBRMaterialPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE_1_
|
|
47048
47048
|
{ label: "Sheen Map", value: 29 },
|
47049
47049
|
{ label: "Anisotropic Map", value: 30 },
|
47050
47050
|
{ label: "Thickness Map", value: 31 },
|
47051
|
+
{ label: "Bump Map", value: 32 },
|
47051
47052
|
// Env
|
47052
47053
|
{ label: "Env Refraction", value: 40 },
|
47053
47054
|
{ label: "Env Reflection", value: 41 },
|
@@ -54353,8 +54354,10 @@ class CameraTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Compone
|
|
54353
54354
|
setActive() {
|
54354
54355
|
const camera = this.props.camera;
|
54355
54356
|
const scene = camera.getScene();
|
54357
|
+
const previousActiveCamera = scene.activeCamera;
|
54356
54358
|
scene.activeCamera = camera;
|
54357
54359
|
camera.attachControl(true);
|
54360
|
+
this.props.globalState.onPropertyChangedObservable.notifyObservers({ object: scene, property: "activeCamera", value: camera, initialValue: previousActiveCamera });
|
54358
54361
|
this.setState({ isActive: true });
|
54359
54362
|
}
|
54360
54363
|
componentDidMount() {
|
@@ -54669,6 +54672,7 @@ class LightTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Componen
|
|
54669
54672
|
switchIsEnabled() {
|
54670
54673
|
const light = this.props.light;
|
54671
54674
|
light.setEnabled(!light.isEnabled());
|
54675
|
+
this.props.globalState.onPropertyChangedObservable.notifyObservers({ object: light, property: "isEnabled", value: light.isEnabled(), initialValue: !light.isEnabled() });
|
54672
54676
|
this.setState({ isEnabled: light.isEnabled() });
|
54673
54677
|
}
|
54674
54678
|
toggleGizmo() {
|
@@ -54770,12 +54774,19 @@ class MeshTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Component
|
|
54770
54774
|
showBoundingBox() {
|
54771
54775
|
const mesh = this.props.mesh;
|
54772
54776
|
mesh.showBoundingBox = !this.state.isBoundingBoxEnabled;
|
54777
|
+
this.props.globalState.onPropertyChangedObservable.notifyObservers({
|
54778
|
+
object: mesh,
|
54779
|
+
property: "showBoundingBox",
|
54780
|
+
value: mesh.showBoundingBox,
|
54781
|
+
initialValue: !mesh.showBoundingBox,
|
54782
|
+
});
|
54773
54783
|
this.setState({ isBoundingBoxEnabled: !this.state.isBoundingBoxEnabled });
|
54774
54784
|
}
|
54775
54785
|
switchVisibility() {
|
54776
54786
|
const newState = !this.state.isVisible;
|
54777
54787
|
this.setState({ isVisible: newState });
|
54778
54788
|
this.props.mesh.isVisible = newState;
|
54789
|
+
this.props.globalState.onPropertyChangedObservable.notifyObservers({ object: this.props.mesh, property: "isVisible", value: newState, initialValue: !newState });
|
54779
54790
|
}
|
54780
54791
|
// mesh.name can fail the type check when we're in javascript, so
|
54781
54792
|
// we can check to avoid crashing
|