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

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