Skip to content
Snippets Groups Projects
Commit a03374d8 authored by Eoin O'Neill's avatar Eoin O'Neill 🍀 Committed by Halla Rempt
Browse files

Kis Tangent Normal Paintop Now Works in 16-Bit and 32-Bit Image Modes.

This updates the normal paint-top to work properly in non-8bit image modes. I believe that most
normal maps are usually 8bit, but this will at least prevent a crash and produce the expected
behavior regardless of image mode.
BUG: 398826

(cherry picked from commit f7e40ac3)
parent 0b5a8d34
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ KisSpacingInformation KisTangentNormalPaintOp::paintAt(const KisPaintInformation
channelValues[2] = r;//red
}
quint8 data[4];
quint8 data[MAX_PIXEL_SIZE];
rgbColorSpace->fromNormalisedChannelsValue(data, channelValues);
KoColor color(data, rgbColorSpace);//Should be default RGB(0.5,0.5,1.0)
//draw stuff here, return kisspacinginformation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment