mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
update render event
This commit is contained in:
parent
a45d245a05
commit
5ac20d4e89
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user