Skip to content

Commit

Permalink
fix: missing side-effect import and import extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn committed Dec 6, 2021
1 parent 4727662 commit 1235e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HostRegistrationStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Scene } from "@babylonjs/core/scene.js";
import { Nullable } from "@babylonjs/core/types";
import { Nullable } from "@babylonjs/core/types.js";

import { CreateInfo } from "./codeGenerationDescriptors";
import { CreatedInstanceMetadata } from "./CreatedInstance";
Expand Down
3 changes: 2 additions & 1 deletion src/Scene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PointerEventTypes, PointerInfo } from '@babylonjs/core/Events/pointerEv
import { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh.js';
import { Nullable } from '@babylonjs/core/types.js';
import { Observer } from '@babylonjs/core/Misc/observable.js';
import '@babylonjs/core/Physics/physicsEngineComponent.js';

import { EngineCanvasContextType, EngineCanvasContext, withEngineCanvasContext } from './hooks/engine';
import { SceneContext } from './hooks/scene';
Expand Down Expand Up @@ -143,7 +144,7 @@ const Scene: React.FC<SceneProps> = (props: SceneProps, context?: any) => {
// TODO: change enable physics to 'usePhysics' taking an object with a Vector3 and 'any'.
// NOTE: must be enabled for updating container (cannot add impostors w/o physics enabled)
if (Array.isArray(props.enablePhysics)) {
(scene as any).enablePhysics(props.enablePhysics[0], props.enablePhysics[1]);
scene.enablePhysics(props.enablePhysics[0], props.enablePhysics[1]);
}

const sceneGraph = (
Expand Down

0 comments on commit 1235e28

Please sign in to comment.