Skip to content

Commit

Permalink
Import for side effects only, remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Sep 15, 2023
1 parent 3561b80 commit 5ef9d35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions visualiser/visualiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import {ActionManager} from "@babylonjs/core/Actions/actionManager"
import {AdvancedDynamicTexture} from "@babylonjs/gui/2D/advancedDynamicTexture";
import "@babylonjs/core/Animations/animatable";
import {Animation} from "@babylonjs/core/Animations/animation";
import {ArcRotateCamera} from "@babylonjs/core/Cameras/arcRotateCamera";
import "@babylonjs/core/Rendering/boundingBoxRenderer";
Expand All @@ -15,8 +16,10 @@ import {Control} from "@babylonjs/gui/2D/controls/control";
import {CreateBox} from "@babylonjs/core/Meshes/Builders/boxBuilder";
import {CreateLines} from "@babylonjs/core/Meshes/Builders/linesBuilder";
import {CreatePlane} from "@babylonjs/core/Meshes/Builders/planeBuilder";
import "@babylonjs/core/Behaviors/Meshes/pointerDragBehavior";
import {DynamicTexture} from "@babylonjs/core/Materials/Textures/dynamicTexture";
import {Engine} from "@babylonjs/core/Engines/engine";
import {ExecuteCodeAction} from "@babylonjs/core/Actions/directActions";
import {HemisphericLight} from "@babylonjs/core/Lights/hemisphericLight";
import {HighlightLayer} from "@babylonjs/core/Layers/highlightLayer";
import {Rectangle} from "@babylonjs/gui/2D/controls/rectangle";
Expand All @@ -25,9 +28,6 @@ import {StandardMaterial} from "@babylonjs/core/Materials/standardMaterial";
import {TextBlock} from "@babylonjs/gui/2D/controls/textBlock";
import {Vector3} from "@babylonjs/core/Maths/math.vector";

// https://forum.babylonjs.com/t/executecodeaction-is-not-working-on-meshes-when-imported-es6-style/7002
import {ExecuteCodeAction} from "./workaroundbabylonimportbug";

document.addEventListener("DOMContentLoaded", function () {

const DEMO_PACKING = {
Expand Down
3 changes: 0 additions & 3 deletions visualiser/workaroundbabylonimportbug.ts

This file was deleted.

0 comments on commit 5ef9d35

Please sign in to comment.