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

Commit

Permalink
Merge pull request #10834 from EtherealEngine/int
Browse files Browse the repository at this point in the history
Int
  • Loading branch information
DanielBelmes authored Aug 3, 2024
2 parents b34db8b + bf607a1 commit 1320ecd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
11 changes: 6 additions & 5 deletions packages/editor/src/components/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { MdOutlineKeyboardArrowDown } from 'react-icons/md'
import { RxHamburgerMenu } from 'react-icons/rx'
import { inputFileWithAddToScene } from '../../functions/assetFunctions'
import { onNewScene } from '../../functions/sceneFunctions'
import { cmdOrCtrlString } from '../../functions/utils'
import { EditorState } from '../../services/EditorServices'
import CreateSceneDialog from '../dialogs/CreateScenePanelDialog'
import ImportSettingsPanel from '../dialogs/ImportSettingsPanelDialog'
Expand Down Expand Up @@ -134,11 +135,11 @@ const generateToolbarMenu = () => {
name: t('editor:menubar.newScene'),
action: onClickNewScene
},
// {
// name: t('editor:menubar.saveScene'),
// hotkey: `${cmdOrCtrlString}+s`,
// action: () => PopoverState.showPopupover(<SaveSceneDialog />)
// },
{
name: t('editor:menubar.saveScene'),
hotkey: `${cmdOrCtrlString}+s`,
action: () => PopoverState.showPopupover(<SaveSceneDialog />)
},
{
name: t('editor:menubar.saveAs'),
action: () => PopoverState.showPopupover(<SaveNewSceneDialog />)
Expand Down
7 changes: 0 additions & 7 deletions packages/editor/src/functions/sceneFunctions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ export const saveSceneGLTF = async (
const result = await Engine.instance.api
.service(staticResourcePath)
.patch(sceneAssetID, { key: assetURL, project: projectName })

getMutableState(EditorState).merge({
sceneName,
scenePath: assetURL,
projectName,
sceneAssetID: result.id
})
}
return
}
Expand Down

0 comments on commit 1320ecd

Please sign in to comment.