Fix T47447: Cycles crash when reaching texture limit with 3D textures
This commit is contained in:
parent
4431caae1a
commit
d6b77450ce
@ -32,10 +32,11 @@ Attribute::~Attribute()
|
|||||||
if(element == ATTR_ELEMENT_VOXEL) {
|
if(element == ATTR_ELEMENT_VOXEL) {
|
||||||
VoxelAttribute *voxel_data = data_voxel();
|
VoxelAttribute *voxel_data = data_voxel();
|
||||||
|
|
||||||
if(voxel_data)
|
if(voxel_data && voxel_data->slot != -1) {
|
||||||
voxel_data->manager->remove_image(voxel_data->slot);
|
voxel_data->manager->remove_image(voxel_data->slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Attribute::set(ustring name_, TypeDesc type_, AttributeElement element_)
|
void Attribute::set(ustring name_, TypeDesc type_, AttributeElement element_)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user