Cycles: internal support for float4 geometry attributes
Previously only float3 and byte4 was supported. Ref D2057
This commit is contained in:

committed by
Brecht Van Lommel

parent
ee6b989f8e
commit
d58b55b55a
@@ -34,7 +34,7 @@ Attribute::Attribute(
|
||||
assert(type == TypeDesc::TypeFloat || type == TypeDesc::TypeColor ||
|
||||
type == TypeDesc::TypePoint || type == TypeDesc::TypeVector ||
|
||||
type == TypeDesc::TypeNormal || type == TypeDesc::TypeMatrix || type == TypeFloat2 ||
|
||||
type == TypeRGBA);
|
||||
type == TypeFloat4 || type == TypeRGBA);
|
||||
|
||||
if (element == ATTR_ELEMENT_VOXEL) {
|
||||
buffer.resize(sizeof(ImageHandle));
|
||||
|
Reference in New Issue
Block a user