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