Pass current file name through to export command (#4503)

* Pass current file name through to export command

* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores)

* Oops I needed a couple other things, not just that one line change

* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores)

* Undo overriding of internal zipped file names
That was liable to cause conflicts and whatnot per @jessfraz feedback

* Update E2E test that was still looking for `output.gltf`

* Missed one other test my bad

* Should've just grepped for output.gltf to begin with

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul Tagliamonte <paul@zoo.dev>
This commit is contained in:
Frank Noirot
2024-11-19 11:30:23 -05:00
committed by GitHub
parent 652519aeae
commit 66bbbf81e2
7 changed files with 32 additions and 14 deletions

View File

@ -484,7 +484,7 @@ export const ModelingMachineProvider = ({
engineCommandManager.exportInfo = {
intent: ExportIntent.Save,
// This never gets used its only for make.
name: '',
name: file?.name?.replace('.kcl', `.${event.data.type}`) || '',
}
const format = {