Skip to content

Commit

Permalink
ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomut1 authored and Rezmason committed Dec 26, 2023
1 parent 05c7402 commit c4811a2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/engine/src/scene/functions/loadGLTFModel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ import { createMockNetwork } from '../../../tests/util/createMockNetwork'
import { loadEmptyScene } from '../../../tests/util/loadEmptyScene'
import { destroyEngine } from '../../ecs/classes/Engine'
import { SceneState } from '../../ecs/classes/Scene'
import {
defineComponent,
defineQuery,
getComponent,
getMutableComponent,
setComponent
} from '../../ecs/functions/ComponentFunctions'
import { defineComponent, defineQuery, getComponent, setComponent } from '../../ecs/functions/ComponentFunctions'
import { createEntity } from '../../ecs/functions/EntityFunctions'
import { EntityTreeComponent } from '../../ecs/functions/EntityTree'
import { createEngine } from '../../initializeEngine'
Expand Down Expand Up @@ -88,14 +82,14 @@ describe.skip('loadGLTFModel', () => {
})
const entityName = 'entity name'
const number = Math.random()
const mesh = new Scene()
const scene = new Scene()
const mesh = new Mesh()
mesh.userData = {
'xrengine.entity': entityName,
// 'xrengine.spawn-point': '',
'xrengine.CustomComponent.val': number
}
const modelComponent = getMutableComponent(entity, ModelComponent)
modelComponent.scene.set(mesh)
scene.add(mesh)
addObjectToGroup(entity, mesh)
const modelQuery = defineQuery([TransformComponent, GroupComponent])
const childQuery = defineQuery([
Expand All @@ -106,7 +100,7 @@ describe.skip('loadGLTFModel', () => {
])
//todo: revise this so that we're forcing the sceneloadingsystem to execute its reactors,
// then we can validate the ECS data directly like we were doing before
const jsonHierarchy = parseGLTFModel(entity)
const jsonHierarchy = parseGLTFModel(entity, scene)
const sceneID = getModelSceneID(entity)
getMutableState(SceneState).scenes[sceneID].set({
metadata: {
Expand Down

0 comments on commit c4811a2

Please sign in to comment.