Skip to content

Commit e089df1

Browse files
author
devsh
committed
To write an asset, it needs to not have missing content
TODO: @tad1 find all other places that need to care about missing content in an asset DAG subgraph.
1 parent 773690d commit e089df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/interchange/CImageWriterOpenEXR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool CImageWriterOpenEXR::writeAsset(system::IFile* _file, const SAssetWritePara
196196

197197
auto imageSmart = asset::IImageAssetHandlerBase::createImageDataForCommonWriting(IAsset::castDown<const ICPUImageView>(_params.rootAsset), _params.logger);
198198
const asset::ICPUImage* image = imageSmart.get();
199-
if (IPreHashed::anyDependantDiscardedContents(image))
199+
if (image->missingContent())
200200
return false;
201201

202202
system::IFile* file = _override->getOutputFile(_file, ctx, { image, 0u });

0 commit comments

Comments
 (0)