Skip to content

Commit

Permalink
selection gizmo starts deselected
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Dec 10, 2021
1 parent 6dd4d04 commit 5388921
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/core/editor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Actions } from 'core/actions';
import { EditorData } from 'data/editor-data';
import { DataOrigin, EditorData } from 'data/editor-data';
import { InspectorData } from 'data/inspector-data';
import { PhaserMeta } from 'data/phaser-meta';
import { PluginConfig, Size } from 'plugin.model';
Expand Down Expand Up @@ -433,6 +433,7 @@ class EditorClass {
}

public disable() {
this.data.selectObject(null, DataOrigin.ACTION);
this.actions.disable();
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/editor.state-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export class EditorStateHandler {
this._isEnabled = false;
Editor.disable();
this.editorView.disable();
// this.referenceImageController.disable();

this.disabledUI.enable();
if (this.onhide) this.onhide();
}
Expand Down
2 changes: 1 addition & 1 deletion src/scene-view/selection-area/gizmos/selection-gizmo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SelectionGizmo extends HTMLElement implements Gizmo {

public init() {
Editor.data.onSelectedObjectChanged.add(this.onSelectionChanged, this);
this.classList.add('selector');
this.classList.add('selector', 'invisible');

this.addEventListener('mouseover', this.onMouseOver.bind(this));
this.addEventListener('mouseout', this.onMouseOut.bind(this));
Expand Down

0 comments on commit 5388921

Please sign in to comment.