update render event

This commit is contained in:
tengge 2020-07-02 21:38:53 +08:00
parent a45d245a05
commit 5ac20d4e89
2 changed files with 5 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class SceneMenu extends React.Component {
map.addLayer(new WorldWind.StarFieldLayer());
window.map = map;
app.options.sceneType = 'GIS';
app.options.sceneType = 'WorldWind';
app.editor.camera.userData.control = '';
app.call(`sceneGraphChanged`, this);
}

View File

@ -33,6 +33,10 @@ RenderEvent.prototype.stop = function () {
};
RenderEvent.prototype.render = function () {
if (app.options.sceneType === 'WorldWind') {
return;
}
const { scene, sceneHelpers } = app.editor;
this.clock._getDelta(); // see: ../polyfills.js