Skip to content

Commit 8867b1f

Browse files
authored
Merge pull request #39 from ir-engine/import-cycles-cleanup
Import Cycles Cleanup
2 parents a1aa0df + fc4a97f commit 8867b1f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/examples/MultipleCanvasCameras.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { CameraComponent } from '@ir-engine/spatial/src/camera/components/Camera
1919
import { CameraOrbitComponent } from '@ir-engine/spatial/src/camera/components/CameraOrbitComponent'
2020
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
2121
import { InputComponent } from '@ir-engine/spatial/src/input/components/InputComponent'
22-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
22+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
2323
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
2424
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
2525
import React, { useEffect, useRef } from 'react'

src/examples/MultipleCanvasScenes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { CameraComponent } from '@ir-engine/spatial/src/camera/components/Camera
1818
import { CameraOrbitComponent } from '@ir-engine/spatial/src/camera/components/CameraOrbitComponent'
1919
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
2020
import { InputComponent } from '@ir-engine/spatial/src/input/components/InputComponent'
21-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
21+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
2222
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
2323
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
2424
import React, { useEffect, useRef } from 'react'

src/examples/avatarSimple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
TransformComponent
3939
} from '@ir-engine/spatial'
4040
import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent'
41-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
41+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
4242
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
4343
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
4444

src/examples/multipleScenes.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ import { InputComponent } from '@ir-engine/spatial/src/input/components/InputCom
3838
import { ColliderComponent } from '@ir-engine/spatial/src/physics/components/ColliderComponent'
3939
import { RigidBodyComponent } from '@ir-engine/spatial/src/physics/components/RigidBodyComponent'
4040
import { RendererState } from '@ir-engine/spatial/src/renderer/RendererState'
41-
import { RendererComponent } from '@ir-engine/spatial/src/renderer/WebGLRendererSystem'
41+
import { RendererComponent } from '@ir-engine/spatial/src/renderer/components/RendererComponent'
4242
import { SceneComponent } from '@ir-engine/spatial/src/renderer/components/SceneComponents'
4343
import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent'
4444
import {
4545
MaterialInstanceComponent,
4646
MaterialStateComponent
4747
} from '@ir-engine/spatial/src/renderer/materials/MaterialComponent'
48-
import { computeTransformMatrix } from '@ir-engine/spatial/src/transform/systems/TransformSystem'
48+
// TransformComponent is already imported above
4949
import React, { useEffect } from 'react'
5050
import { Cache, Color, Euler, MathUtils, Matrix4, MeshLambertMaterial, Quaternion, Vector3 } from 'three'
5151
import { Transform } from './utils/transform'
@@ -196,7 +196,7 @@ const SceneReactor = (props: { coord: Vector3 }) => {
196196
rotation: new Quaternion(),
197197
scale: new Vector3(0.5, 0.5, 0.5)
198198
})
199-
computeTransformMatrix(gltfEntity)
199+
TransformComponent.computeTransformMatrix(gltfEntity)
200200

201201
// apply transform state
202202
const transformComponent = getComponent(gltfEntity, TransformComponent)
@@ -207,7 +207,7 @@ const SceneReactor = (props: { coord: Vector3 }) => {
207207
transformComponent.rotation,
208208
transformComponent.scale
209209
)
210-
computeTransformMatrix(gltfEntity)
210+
TransformComponent.computeTransformMatrix(gltfEntity)
211211
}, [transform.position, transform.rotation, transform.scale])
212212

213213
useEffect(() => {

0 commit comments

Comments
 (0)