Cycles: Fix regression where smoke wouldn't show in renders

This commit is contained in:
Mai Lavelle
2016-08-17 10:33:28 -04:00
parent ab775b6ae9
commit 8cac980a28

View File

@@ -73,7 +73,11 @@ ccl_device_inline AttributeDescriptor find_attribute(KernelGlobals *kg, const Sh
AttributeDescriptor desc;
desc.element = (AttributeElement)attr_map.y;
if(ccl_fetch(sd, prim) == PRIM_NONE && desc.element != ATTR_ELEMENT_MESH) {
if(ccl_fetch(sd, prim) == PRIM_NONE &&
desc.element != ATTR_ELEMENT_MESH &&
desc.element != ATTR_ELEMENT_VOXEL &&
desc.element != ATTR_ELEMENT_OBJECT)
{
return attribute_not_found();
}