Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/editor/assets/assets-cubemap-prefiltering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,13 @@ editor.once('load', () => {

const onLoaded = (cubemap: Texture) => {
(generateLegacyCubemap ? generateCubemap : generateEnvAtlas)(cubemapAsset, cubemap).then((result) => {
// upload blob as dds
// name only the file: a name renames the cubemap asset, which would gain another
// extension on every prefilter
editor.call(
'assets:uploadFile',
{
file: result.blob,
name: cubemapAsset.get('name') + result.extension,
filename: cubemapAsset.get('name') + result.extension,
asset: cubemapAsset,
type: 'cubemap'
},
Expand Down
Loading