mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 02:39:17 +00:00
Fixed log spam while exporting MP3 + fixed world asset name being generated incorrectly
This commit is contained in:
@@ -89,7 +89,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
|
||||
}
|
||||
else
|
||||
{
|
||||
rSCLY.WriteLong(0xFFFFFFFF);
|
||||
CAssetID::skInvalidID32.Write(rSCLY);
|
||||
rSCLY.WriteLong(0);
|
||||
rSCLY.WriteLong(0xFFFFFFFF);
|
||||
}
|
||||
@@ -105,7 +105,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
|
||||
|
||||
else
|
||||
{
|
||||
rSCLY.WriteLongLong(CAssetID::skInvalidID64.ToLongLong());
|
||||
CAssetID::skInvalidID64.Write(rSCLY);
|
||||
rSCLY.WriteLong(0xFFFFFFFF);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,10 +358,11 @@ CMaterial* CMaterialLoader::ReadCorruptionMaterial()
|
||||
pPass->mPassType = mpFile->ReadLong();
|
||||
pPass->mSettings = (CMaterialPass::EPassSettings) mpFile->ReadLong();
|
||||
|
||||
// Skip passes that don't have a texture. Honestly don't really know what to do with these right now
|
||||
u64 TextureID = mpFile->ReadLongLong();
|
||||
if (TextureID == 0xFFFFFFFFFFFFFFFF)
|
||||
{
|
||||
Log::FileWarning(mpFile->GetSourceString(), mPassOffsets.back(), "Skipping " + pPass->mPassType.ToString() + " pass with no texture");
|
||||
//Log::FileWarning(mpFile->GetSourceString(), mPassOffsets.back(), "Skipping " + pPass->mPassType.ToString() + " pass with no texture");
|
||||
delete pPass;
|
||||
continue;
|
||||
}
|
||||
@@ -555,7 +556,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
|
||||
if (mHas0x400) pPass->SetEnabled(false);
|
||||
}
|
||||
|
||||
// Bloom
|
||||
// Bloom Incandescence
|
||||
else if (Type == "BLOI")
|
||||
{
|
||||
pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB);
|
||||
@@ -570,6 +571,12 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
|
||||
pPass->SetAlphaOutput(ePrevReg);
|
||||
}
|
||||
|
||||
// Bloom Diffuse
|
||||
else if (Type == "BLOD")
|
||||
{
|
||||
// Not supported yet
|
||||
}
|
||||
|
||||
// X-Ray - since we don't support X-Ray previews, no effect
|
||||
else if (Type == "XRAY")
|
||||
{
|
||||
@@ -601,6 +608,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
|
||||
|
||||
else
|
||||
{
|
||||
//
|
||||
Log::FileError(mpFile->GetSourceString(), mPassOffsets[iPass], "Unsupported material pass type: " + Type.ToString());
|
||||
pPass->mEnabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user