You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user