Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add defautl arguement to add media node func
Browse files Browse the repository at this point in the history
  • Loading branch information
SYBIOTE committed Oct 26, 2023
1 parent b6813f9 commit 8d85715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/functions/addMediaNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import { VideoComponent } from '@etherealengine/engine/src/scene/components/Vide
import { VolumetricComponent } from '@etherealengine/engine/src/scene/components/VolumetricComponent'

import { ComponentJson } from '@etherealengine/common/src/interfaces/SceneInterface'
import { SceneState } from '@etherealengine/engine/src/ecs/classes/Scene'
import { getState } from '@etherealengine/hyperflux'
import { EditorControlFunctions } from './EditorControlFunctions'

/**
Expand All @@ -44,7 +46,7 @@ import { EditorControlFunctions } from './EditorControlFunctions'
*/
export async function addMediaNode(
url: string,
parent: Entity | null = null,
parent: Entity = getState(SceneState).sceneEntity,
before: Entity | null = null,
extraComponentJson: ComponentJson[] = []
) {
Expand Down

0 comments on commit 8d85715

Please sign in to comment.