Skip to content

Commit

Permalink
fix: make free control not depend on scene (#724)
Browse files Browse the repository at this point in the history
Co-authored-by: shensi.zxd <[email protected]>
  • Loading branch information
zhuxudong and shensi.zxd authored Apr 2, 2022
1 parent 89f7517 commit f077f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controls/src/FreeControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class FreeControl extends Script {
this.camera = entity;
// @ts-ignore
// @todo In the future, the dependence on html elements will be removed and realized through the input of the packaging engine.
this.mainElement = this.scene.engine.canvas._webCanvas;
this.mainElement = this.engine.canvas._webCanvas;
this.domElement = document;

this.movementSpeed = 1.0;
Expand Down

0 comments on commit f077f1b

Please sign in to comment.