Fixed an issue caused by last submit. It broke the import of uncompressed 8 bits psd that had 3 or 4 channel

#jira UE-168148
#preflight 6357665b9e14ee3c7984b0dc
#rb jeanmichel.dignard
#lockdown jeanmichel.dignard

robomerge[FN_EngineMerge] -UE5-RES

[CL 22798390 by julien stjean in ue5-main branch]
This commit is contained in:
julien stjean
2022-10-26 19:08:19 -04:00
parent b27e5f64aa
commit 088fdef28d
2 changed files with 8 additions and 6 deletions

View File

@@ -189,12 +189,13 @@ namespace UE
}
else
{
// Each channel live in a separate plane
Dest[Pixel].R = pCur[Pixel];
Dest[Pixel].G = pCur[Pixel + 1];
Dest[Pixel].B = pCur[Pixel + 2];
Dest[Pixel].G = pCur[NPixels + Pixel];
Dest[Pixel].B = pCur[NPixels * 2 + Pixel];
if (Info.nChannels == 4)
{
Dest[Pixel].A = pCur[Pixel + 3];
Dest[Pixel].A = pCur[NPixels * 3 + Pixel];
}
}
}

View File

@@ -2541,12 +2541,13 @@ static bool psd_ReadData( uint8* pOut, const uint8*& pBuffer, FPSDFileHeader& In
}
else
{
// Each channel live in a separate plane
Dest[Pixel].R = pCur[Pixel];
Dest[Pixel].G = pCur[Pixel + 1];
Dest[Pixel].B = pCur[Pixel + 2];
Dest[Pixel].G = pCur[NPixels + Pixel];
Dest[Pixel].B = pCur[NPixels * 2 + Pixel];
if (Info.nChannels == 4)
{
Dest[Pixel].A = pCur[Pixel + 3];
Dest[Pixel].A = pCur[NPixels * 3 + Pixel];
}
}
}