修改地球判断条件。

This commit is contained in:
tengge1 2019-04-14 19:36:19 +08:00
parent 1e15a6ef5e
commit ec00cd0967
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ GisBasicComponent.prototype.onObjectChanged = function () {
GisBasicComponent.prototype.updateUI = function () {
var container = UI.get('panel', this.id);
var editor = this.app.editor;
if (editor.selected && editor.selected.isGlobe) {
if (editor.selected && editor.selected.userData.type === 'Globe') {
container.dom.style.display = '';
} else {
container.dom.style.display = 'none';

View File

@ -24,7 +24,7 @@ function Globe(camera, renderer, options = {}) {
this.name = L_GLOBE;
this.isGlobe = true;
this.userData.type = 'Globe';
this.camera = camera;
this.renderer = renderer;