@babylonjs/inspector 6.21.0 → 6.21.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.
@@ -52854,7 +52854,7 @@ class GlobalState {
52854
52854
  this.onValidationResultsUpdatedObservable.notifyObservers(null);
52855
52855
  }
52856
52856
  }
52857
- enableLightGizmo(light, enable = true) {
52857
+ enableLightGizmo(light, enable = true, gizmoCamera = null) {
52858
52858
  if (enable) {
52859
52859
  if (!light.reservedDataStore) {
52860
52860
  light.reservedDataStore = {};
@@ -52864,6 +52864,9 @@ class GlobalState {
52864
52864
  this.lightGizmos.push(light.reservedDataStore.lightGizmo);
52865
52865
  light.reservedDataStore.lightGizmo.light = light;
52866
52866
  light.reservedDataStore.lightGizmo.material.reservedDataStore = { hidden: true };
52867
+ if (gizmoCamera) {
52868
+ light.reservedDataStore.lightGizmo.gizmoLayer.setRenderCamera(gizmoCamera);
52869
+ }
52867
52870
  }
52868
52871
  }
52869
52872
  else if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
@@ -52872,7 +52875,7 @@ class GlobalState {
52872
52875
  light.reservedDataStore.lightGizmo = null;
52873
52876
  }
52874
52877
  }
52875
- enableCameraGizmo(camera, enable = true) {
52878
+ enableCameraGizmo(camera, enable = true, gizmoCamera = null) {
52876
52879
  if (enable) {
52877
52880
  if (!camera.reservedDataStore) {
52878
52881
  camera.reservedDataStore = {};
@@ -52882,6 +52885,9 @@ class GlobalState {
52882
52885
  this.cameraGizmos.push(camera.reservedDataStore.cameraGizmo);
52883
52886
  camera.reservedDataStore.cameraGizmo.camera = camera;
52884
52887
  camera.reservedDataStore.cameraGizmo.material.reservedDataStore = { hidden: true };
52888
+ if (gizmoCamera) {
52889
+ camera.reservedDataStore.cameraGizmo.gizmoLayer.setRenderCamera(gizmoCamera);
52890
+ }
52885
52891
  }
52886
52892
  }
52887
52893
  else if (camera.reservedDataStore && camera.reservedDataStore.cameraGizmo) {
@@ -54410,7 +54416,7 @@ class CameraTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Compone
54410
54416
  this.setState({ isGizmoEnabled: false });
54411
54417
  }
54412
54418
  else {
54413
- this.props.globalState.enableCameraGizmo(camera, true);
54419
+ this.props.globalState.enableCameraGizmo(camera, true, this.props.gizmoCamera);
54414
54420
  this.setState({ isGizmoEnabled: true });
54415
54421
  }
54416
54422
  }
@@ -54704,7 +54710,7 @@ class LightTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Componen
54704
54710
  this.setState({ isGizmoEnabled: false });
54705
54711
  }
54706
54712
  else {
54707
- this.props.globalState.enableLightGizmo(light, true);
54713
+ this.props.globalState.enableLightGizmo(light, true, this.props.gizmoCamera);
54708
54714
  this.setState({ isGizmoEnabled: true });
54709
54715
  }
54710
54716
  }
@@ -55013,14 +55019,14 @@ class SceneTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Componen
55013
55019
  }
55014
55020
  else if (className.indexOf("Light") !== -1) {
55015
55021
  if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.lightGizmo) {
55016
- this.props.globalState.enableLightGizmo(this._selectedEntity, true);
55022
+ this.props.globalState.enableLightGizmo(this._selectedEntity, true, this.props.gizmoCamera);
55017
55023
  this.forceUpdate();
55018
55024
  }
55019
55025
  manager.attachToNode(this._selectedEntity.reservedDataStore.lightGizmo.attachedNode);
55020
55026
  }
55021
55027
  else if (className.indexOf("Camera") !== -1) {
55022
55028
  if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.cameraGizmo) {
55023
- this.props.globalState.enableCameraGizmo(this._selectedEntity, true);
55029
+ this.props.globalState.enableCameraGizmo(this._selectedEntity, true, this.props.gizmoCamera);
55024
55030
  this.forceUpdate();
55025
55031
  }
55026
55032
  manager.attachToNode(this._selectedEntity.reservedDataStore.cameraGizmo.attachedNode);
@@ -55288,14 +55294,14 @@ class SceneTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_4__.Componen
55288
55294
  }
55289
55295
  else if (className.indexOf("Light") !== -1) {
55290
55296
  if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.lightGizmo) {
55291
- this.props.globalState.enableLightGizmo(this._selectedEntity, true);
55297
+ this.props.globalState.enableLightGizmo(this._selectedEntity, true, this.props.gizmoCamera);
55292
55298
  this.forceUpdate();
55293
55299
  }
55294
55300
  manager.attachToNode(this._selectedEntity.reservedDataStore.lightGizmo.attachedNode);
55295
55301
  }
55296
55302
  else if (className.indexOf("Camera") !== -1) {
55297
55303
  if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.cameraGizmo) {
55298
- this.props.globalState.enableCameraGizmo(this._selectedEntity, true);
55304
+ this.props.globalState.enableCameraGizmo(this._selectedEntity, true, this.props.gizmoCamera);
55299
55305
  this.forceUpdate();
55300
55306
  }
55301
55307
  manager.attachToNode(this._selectedEntity.reservedDataStore.cameraGizmo.attachedNode);
@@ -56039,7 +56045,7 @@ class SceneExplorerComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Componen
56039
56045
  rootNodes.push(mesh);
56040
56046
  }
56041
56047
  }
56042
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "tree", onContextMenu: (e) => e.preventDefault(), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SceneExplorerFilterComponent, { onFilter: (filter) => this.filterContent(filter) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_sceneTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__.SceneTreeItemComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, scene: scene, onRefresh: () => this.forceUpdate(), onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, contextMenuItems: nodeContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: rootNodes, label: "Nodes", offset: 1, filter: this.state.filter }), scene.skeletons.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.skeletons, label: "Skeletons", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: materials, contextMenuItems: materialsContextMenus, label: "Materials", offset: 1, filter: this.state.filter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: textures, label: "Textures", offset: 1, filter: this.state.filter }), postProcesses.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: postProcesses, label: "Post-processes", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, contextMenuItems: pipelineContextMenus, selectedEntity: this.state.selectedEntity, items: pipelines, label: "Rendering pipelines", offset: 1, filter: this.state.filter }), scene.effectLayers && scene.effectLayers.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.effectLayers, label: "Effect layers", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, contextMenuItems: particleSystemsContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.particleSystems, label: "Particle systems", offset: 1, filter: this.state.filter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, contextMenuItems: spriteManagersContextMenus, forceSubitems: true, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.spriteManagers, label: "Sprite managers", offset: 1, filter: this.state.filter }), guiElements && guiElements.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: guiElements, label: "GUI", offset: 1, filter: this.state.filter })), scene.animationGroups.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.animationGroups, label: "Animation groups", offset: 1, filter: this.state.filter })), scene.mainSoundTrack && scene.mainSoundTrack.soundCollection.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.mainSoundTrack.soundCollection, label: "Sounds", offset: 1, filter: this.state.filter })), this.props.additionalNodes &&
56048
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "tree", onContextMenu: (e) => e.preventDefault(), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SceneExplorerFilterComponent, { onFilter: (filter) => this.filterContent(filter) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_sceneTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__.SceneTreeItemComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, scene: scene, onRefresh: () => this.forceUpdate(), onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, contextMenuItems: nodeContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: rootNodes, label: "Nodes", offset: 1, filter: this.state.filter }), scene.skeletons.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.skeletons, label: "Skeletons", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: materials, contextMenuItems: materialsContextMenus, label: "Materials", offset: 1, filter: this.state.filter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: textures, label: "Textures", offset: 1, filter: this.state.filter }), postProcesses.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: postProcesses, label: "Post-processes", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, contextMenuItems: pipelineContextMenus, selectedEntity: this.state.selectedEntity, items: pipelines, label: "Rendering pipelines", offset: 1, filter: this.state.filter }), scene.effectLayers && scene.effectLayers.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.effectLayers, label: "Effect layers", offset: 1, filter: this.state.filter })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, contextMenuItems: particleSystemsContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.particleSystems, label: "Particle systems", offset: 1, filter: this.state.filter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, contextMenuItems: spriteManagersContextMenus, forceSubitems: true, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.spriteManagers, label: "Sprite managers", offset: 1, filter: this.state.filter }), guiElements && guiElements.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: guiElements, label: "GUI", offset: 1, filter: this.state.filter })), scene.animationGroups.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.animationGroups, label: "Animation groups", offset: 1, filter: this.state.filter })), scene.mainSoundTrack && scene.mainSoundTrack.soundCollection.length > 0 && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.mainSoundTrack.soundCollection, label: "Sounds", offset: 1, filter: this.state.filter })), this.props.additionalNodes &&
56043
56049
  this.props.additionalNodes.map((additionalNode) => {
56044
56050
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: additionalNode.getContent(), label: additionalNode.name, offset: 1, filter: this.state.filter }, additionalNode.name));
56045
56051
  })] }));
@@ -56182,7 +56188,7 @@ class TreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
56182
56188
  }
56183
56189
  const sortedItems = _tools__WEBPACK_IMPORTED_MODULE_4__.Tools.SortAndFilter(null, items);
56184
56190
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "groupContainer", style: marginStyle, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_contextmenu__WEBPACK_IMPORTED_MODULE_5__.ContextMenuTrigger, { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator, children: [this.renderContextMenu(), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TreeItemExpandableHeaderComponent, { isExpanded: this.state.isExpanded, label: this.props.label, onClick: () => this.switchExpandedState(), onExpandAll: (expand) => this.expandAll(expand) })] }) }), sortedItems.map((item) => {
56185
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemSelectableComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemSelectableComponent, { mustExpand: this.state.mustExpand, extensibilityGroups: this.props.extensibilityGroups, offset: this.props.offset + 1, selectedEntity: this.props.selectedEntity, entity: item, globalState: this.props.globalState, filter: this.props.filter }, item.uniqueId !== undefined && item.uniqueId !== null ? item.uniqueId : item.name));
56191
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemSelectableComponent__WEBPACK_IMPORTED_MODULE_3__.TreeItemSelectableComponent, { mustExpand: this.state.mustExpand, extensibilityGroups: this.props.extensibilityGroups, offset: this.props.offset + 1, selectedEntity: this.props.selectedEntity, entity: item, globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, filter: this.props.filter }, item.uniqueId !== undefined && item.uniqueId !== null ? item.uniqueId : item.name));
56186
56192
  })] }));
56187
56193
  }
56188
56194
  }
@@ -56314,7 +56320,7 @@ class TreeItemSelectableComponent extends react__WEBPACK_IMPORTED_MODULE_5__.Com
56314
56320
  }
56315
56321
  const children = _tools__WEBPACK_IMPORTED_MODULE_3__.Tools.SortAndFilter(entity, entity.getChildren ? entity.getChildren() : entity.children);
56316
56322
  return children.map((item, i) => {
56317
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TreeItemSelectableComponent, { globalState: this.props.globalState, mustExpand: this.props.mustExpand, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.props.selectedEntity, offset: this.props.offset + 2, entity: item, filter: this.props.filter }, i));
56323
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(TreeItemSelectableComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, mustExpand: this.props.mustExpand, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.props.selectedEntity, offset: this.props.offset + 2, entity: item, filter: this.props.filter }, i));
56318
56324
  });
56319
56325
  }
56320
56326
  render() {
@@ -56347,7 +56353,7 @@ class TreeItemSelectableComponent extends react__WEBPACK_IMPORTED_MODULE_5__.Com
56347
56353
  }
56348
56354
  }
56349
56355
  }
56350
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer", style: marginStyle, children: [hasChildren && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "arrow icon", onClick: () => this.switchExpandedState(), children: chevron })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemSpecializedComponent__WEBPACK_IMPORTED_MODULE_1__.TreeItemSpecializedComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, label: entity.name, entity: entity, onClick: () => this.onSelect() })] }), this.renderChildren()] }));
56356
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer", style: marginStyle, children: [hasChildren && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "arrow icon", onClick: () => this.switchExpandedState(), children: chevron })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemSpecializedComponent__WEBPACK_IMPORTED_MODULE_1__.TreeItemSpecializedComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, extensibilityGroups: this.props.extensibilityGroups, label: entity.name, entity: entity, onClick: () => this.onSelect() })] }), this.renderChildren()] }));
56351
56357
  }
56352
56358
  }
56353
56359
 
@@ -56447,10 +56453,10 @@ class TreeItemSpecializedComponent extends react__WEBPACK_IMPORTED_MODULE_9__.Co
56447
56453
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_transformNodeTreeItemComponent__WEBPACK_IMPORTED_MODULE_8__.TransformNodeItemComponent, { extensibilityGroups: this.props.extensibilityGroups, transformNode: entity, onClick: () => this.onClick() });
56448
56454
  }
56449
56455
  if (className.indexOf("Camera") !== -1) {
56450
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__.CameraTreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, camera: entity, onClick: () => this.onClick() }));
56456
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__.CameraTreeItemComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, extensibilityGroups: this.props.extensibilityGroups, camera: entity, onClick: () => this.onClick() }));
56451
56457
  }
56452
56458
  if (className.indexOf("Light", className.length - 5) !== -1) {
56453
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_lightTreeItemComponent__WEBPACK_IMPORTED_MODULE_3__.LightTreeItemComponent, { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, light: entity, onClick: () => this.onClick() }));
56459
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_lightTreeItemComponent__WEBPACK_IMPORTED_MODULE_3__.LightTreeItemComponent, { globalState: this.props.globalState, gizmoCamera: this.props.gizmoCamera, extensibilityGroups: this.props.extensibilityGroups, light: entity, onClick: () => this.onClick() }));
56454
56460
  }
56455
56461
  if (className.indexOf("Material") !== -1) {
56456
56462
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_entities_materialTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__.MaterialTreeItemComponent, { extensibilityGroups: this.props.extensibilityGroups, material: entity, onClick: () => this.onClick() });