mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修改地球判断条件。
This commit is contained in:
parent
1e15a6ef5e
commit
ec00cd0967
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user