|
@@ -79,6 +79,10 @@ import { Skeleton } from 'babylonjs/Bones/skeleton';
|
|
|
import { SkeletonPropertyGridComponent } from './propertyGrids/meshes/skeletonPropertyGridComponent';
|
|
|
import { Bone } from 'babylonjs/Bones/bone';
|
|
|
import { BonePropertyGridComponent } from './propertyGrids/meshes/bonePropertyGridComponent';
|
|
|
+import { DirectionalLightPropertyGridComponent } from './propertyGrids/lights/directionalLightPropertyGridComponent';
|
|
|
+import { DirectionalLight } from 'babylonjs/Lights/directionalLight';
|
|
|
+import { SpotLight } from 'babylonjs/Lights/spotLight';
|
|
|
+import { SpotLightPropertyGridComponent } from './propertyGrids/lights/spotLightPropertyGridComponent';
|
|
|
|
|
|
export class PropertyGridTabComponent extends PaneComponent {
|
|
|
private _timerIntervalId: number;
|
|
@@ -158,6 +162,24 @@ export class PropertyGridTabComponent extends PaneComponent {
|
|
|
onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
}
|
|
|
|
|
|
+ if (className === "DirectionalLight") {
|
|
|
+ const pointLight = entity as DirectionalLight;
|
|
|
+ return (<DirectionalLightPropertyGridComponent
|
|
|
+ globalState={this.props.globalState}
|
|
|
+ light={pointLight}
|
|
|
+ lockObject={this._lockObject}
|
|
|
+ onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (className === "SpotLight") {
|
|
|
+ const pointLight = entity as SpotLight;
|
|
|
+ return (<SpotLightPropertyGridComponent
|
|
|
+ globalState={this.props.globalState}
|
|
|
+ light={pointLight}
|
|
|
+ lockObject={this._lockObject}
|
|
|
+ onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
+ }
|
|
|
+
|
|
|
if (className.indexOf("TransformNode") !== -1 || className.indexOf("Mesh") !== -1) {
|
|
|
const transformNode = entity as TransformNode;
|
|
|
return (<TransformNodePropertyGridComponent transformNode={transformNode}
|