Skip to content
Snippets Groups Projects
Commit 81494f7e authored by Amorilia's avatar Amorilia
Browse files

fixed NiPixelData bugs

parent 5bba4eb9
No related branches found
No related tags found
No related merge requests found
......@@ -3880,7 +3880,8 @@ void NiPixelData::SetColors( const vector<Color4> & new_pixels, bool generate_mi
delete [] data;
}
data = new byte[size * bpp / 8];
dataSize = size * bpp / 8;
data = new byte[dataSize];
//Copy pixels to Color4 C array
Color4 * tmp_image = new Color4[new_pixels.size()];
......
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