forked from bartvdbraak/blender
Fix T40797: Crash on render on specific file with volumentrics and 'use hair' clicked on render layer
This commit is contained in:
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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user