Fix T40797: Crash on render on specific file with volumentrics and 'use hair' clicked on render layer

This commit is contained in:
Sergey Sharybin 2014-06-28 01:19:26 +06:00
parent 9327538f0a
commit a8233d7c44
Notes: blender-bot 2023-02-14 10:26:03 +01:00
Referenced by issue #40974, Black mesh rendered in minus one scale
Referenced by issue #40849, OpenGL Multi-Window Error
Referenced by issue #40856, tooltip text color no longer using user preference
Referenced by issue #40857, Linking Empty to 3D Track Doesn't Work Correctly
Referenced by issue #40797, Crash on render on specific file with volumentrics and 'use hair' clicked on render layer
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ static void update_attribute_element_offset(Mesh *mesh, vector<float>& attr_floa
VoxelAttribute *voxel_data = mattr->data_voxel();
offset = voxel_data->slot;
}
if(mattr->element == ATTR_ELEMENT_CORNER_BYTE) {
else if(mattr->element == ATTR_ELEMENT_CORNER_BYTE) {
uchar4 *data = mattr->data_uchar4();
offset = attr_uchar4.size();