From 06189ba427d0a47618c66d70a5a1ee2a2fe02b71 Mon Sep 17 00:00:00 2001 From: David Catuhe Date: Thu, 5 Dec 2024 11:35:43 -0800 Subject: [PATCH] Add IES to inspector (#15959) --- .../components/actionTabs/tabs/propertyGridTabComponent.tsx | 1 + .../propertyGrids/lights/spotLightPropertyGridComponent.tsx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/dev/inspector/src/components/actionTabs/tabs/propertyGridTabComponent.tsx b/packages/dev/inspector/src/components/actionTabs/tabs/propertyGridTabComponent.tsx index c582a573949..826064e29ad 100644 --- a/packages/dev/inspector/src/components/actionTabs/tabs/propertyGridTabComponent.tsx +++ b/packages/dev/inspector/src/components/actionTabs/tabs/propertyGridTabComponent.tsx @@ -314,6 +314,7 @@ export class PropertyGridTabComponent extends PaneComponent { light={pointLight} lockObject={this._lockObject} onPropertyChangedObservable={this.props.onPropertyChangedObservable} + onSelectionChangedObservable={this.props.onSelectionChangedObservable} /> ); } diff --git a/packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx b/packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx index 487d5811aa9..314ee55909a 100644 --- a/packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx +++ b/packages/dev/inspector/src/components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx @@ -10,12 +10,14 @@ import { FloatLineComponent } from "shared-ui-components/lines/floatLineComponen import { CommonShadowLightPropertyGridComponent } from "./commonShadowLightPropertyGridComponent"; import type { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject"; import type { GlobalState } from "../../../../globalState"; +import { TextureLinkLineComponent } from "../../../../../components/actionTabs/lines/textureLinkLineComponent"; interface ISpotLightPropertyGridComponentProps { globalState: GlobalState; light: SpotLight; lockObject: LockObject; onPropertyChangedObservable?: Observable; + onSelectionChangedObservable?: Observable; } export class SpotLightPropertyGridComponent extends React.Component { @@ -86,6 +88,10 @@ export class SpotLightPropertyGridComponent extends React.Component + + {light.iesProfileTexture && ( + + )}