浏览代码

Export IScreenshotSize. Use IScreenshotSize for normal CreateScreenshot command as well.

Devin Wright 6 年之前
父节点
当前提交
6cd68d0bef
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      inspector/src/components/actionTabs/tabs/toolsTabComponent.tsx
  2. 1 0
      src/Misc/index.ts

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

@@ -50,7 +50,7 @@ export class ToolsTabComponent extends PaneComponent {
     captureScreenshot() {
     captureScreenshot() {
         const scene = this.props.scene;
         const scene = this.props.scene;
         if (scene.activeCamera) {
         if (scene.activeCamera) {
-            Tools.CreateScreenshot(scene.getEngine(), scene.activeCamera, { precision: 1.0 });
+            Tools.CreateScreenshot(scene.getEngine(), scene.activeCamera, this._screenShotSize);
         }
         }
     }
     }
 
 

+ 1 - 0
src/Misc/index.ts

@@ -40,3 +40,4 @@ export * from "./fileRequest";
 export * from "./customAnimationFrameRequester";
 export * from "./customAnimationFrameRequester";
 export * from "./retryStrategy";
 export * from "./retryStrategy";
 export * from "./loadFileError";
 export * from "./loadFileError";
+export * from "./interfaces/screenshotSize";