From ec00cd096704eba866b264f3310d63f7c0f4ca28 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sun, 14 Apr 2019 19:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E7=90=83=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/component/gis/GisBasicComponent.js | 2 +- ShadowEditor.Web/src/gis/Globe.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ShadowEditor.Web/src/component/gis/GisBasicComponent.js b/ShadowEditor.Web/src/component/gis/GisBasicComponent.js index e4e497c3..ebfba715 100644 --- a/ShadowEditor.Web/src/component/gis/GisBasicComponent.js +++ b/ShadowEditor.Web/src/component/gis/GisBasicComponent.js @@ -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'; diff --git a/ShadowEditor.Web/src/gis/Globe.js b/ShadowEditor.Web/src/gis/Globe.js index 89821532..058838ef 100644 --- a/ShadowEditor.Web/src/gis/Globe.js +++ b/ShadowEditor.Web/src/gis/Globe.js @@ -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;