变更:在非开发环境移除Sky命令

pull/1322/MERGE
ChenX 4 years ago
parent 4308191ba2
commit 0cf9305bc2

@ -1,6 +1,7 @@
import * as THREE from 'three';
import { app } from '../ApplicationServices/Application';
import { IsDev } from '../Common/Deving';
import { Command } from '../Editor/CommandMachine';
import { Sky } from './Sky';
@ -8,6 +9,8 @@ export class DrawSky implements Command
{
async exec()
{
if (!IsDev()) return;
let sky = new Sky();
app.Viewer.Scene.add(sky);
sky.scale.setScalar(50);

Loading…
Cancel
Save