Sfoglia il codice sorgente

Fix documentation CI returns statments
Revert formating

noalak 5 anni fa
parent
commit
31f2cb5f91

+ 9 - 9
inspector/src/components/actionTabs/tabs/toolsTabComponent.tsx

@@ -155,7 +155,7 @@ export class ToolsTabComponent extends PaneComponent {
             glb.downloadFiles();
             this._isExporting = false;
             this.forceUpdate();
-        }).catch(reason => {
+        }).catch(reason => {    
             this._isExporting = false;
             this.forceUpdate();
         });
@@ -217,17 +217,17 @@ export class ToolsTabComponent extends PaneComponent {
                     <ButtonLineComponent label="Capture" onClick={() => this.captureRender()} />
                     <div className="vector3Line">
                         <FloatLineComponent label="Precision" target={this._screenShotSize} propertyName='precision' onPropertyChangedObservable={this.props.onPropertyChangedObservable} />
-                        <CheckBoxLineComponent label="Use Width/Height" onSelect={value => {
+                        <CheckBoxLineComponent label="Use Width/Height" onSelect={ value => {
                             this._useWidthHeight = value;
                             this.forceUpdate();
                         }
                         } isSelected={() => this._useWidthHeight} />
                         {
-                            this._useWidthHeight &&
-                            <div className="secondLine">
-                                <NumericInputComponent label="Width" precision={0} step={1} value={this._screenShotSize.width ? this._screenShotSize.width : 512} onChange={value => this._screenShotSize.width = value} />
-                                <NumericInputComponent label="Height" precision={0} step={1} value={this._screenShotSize.height ? this._screenShotSize.height : 512} onChange={value => this._screenShotSize.height = value} />
-                            </div>
+                        this._useWidthHeight &&
+                        <div className="secondLine">
+                            <NumericInputComponent label="Width" precision={0} step={1} value={this._screenShotSize.width ? this._screenShotSize.width : 512} onChange={value => this._screenShotSize.width = value} />
+                            <NumericInputComponent label="Height" precision={0} step={1} value={this._screenShotSize.height ? this._screenShotSize.height : 512} onChange={value => this._screenShotSize.height = value} />
+                        </div>
                         }
 
                     </div>
@@ -253,8 +253,8 @@ export class ToolsTabComponent extends PaneComponent {
                         <TextLineComponent label="Please wait..exporting" ignoreValue={true} />
                     }
                     {
-                        !this._isExporting &&
-                        <>
+                        !this._isExporting && 
+                        <> 
                             <ButtonLineComponent label="Export to GLB" onClick={() => this.exportGLTF()} />
                             <ButtonLineComponent label="Export to Babylon" onClick={() => this.exportBabylon()} />
                             {

+ 1 - 1
inspector/src/components/globalState.ts

@@ -111,7 +111,7 @@ export class GlobalState {
                 light.reservedDataStore.lightGizmo = new LightGizmo();
                 this.lightGizmos.push(light.reservedDataStore.lightGizmo)
                 light.reservedDataStore.lightGizmo.light = light;
-                light.reservedDataStore.lightGizmo.material.reservedDataStore = { hidden: true };
+                light.reservedDataStore.lightGizmo.material.reservedDataStore = {hidden: true};
             }
         } else if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
             this.lightGizmos.splice(this.lightGizmos.indexOf(light.reservedDataStore.lightGizmo), 1);

File diff suppressed because it is too large
+ 1 - 0
src/Loading/sceneLoader.ts


+ 1 - 1
src/abstractScene.ts

@@ -200,7 +200,7 @@ export abstract class AbstractScene {
     public environmentTexture: Nullable<BaseTexture> = null;
 
     /**
-     * Return all meshes, lights, cameras, transformNodes and bones
+     * @returns all meshes, lights, cameras, transformNodes and bones
      */
     public getNodes(): Array<Node> {
         let nodes = new Array<Node>();