Fix Cycles hair render error on GPU after recent changes

Volumes primitive needs to be part of traceable primitives.
This commit is contained in:
Brecht Van Lommel 2021-06-29 16:34:32 +02:00
parent 037035921b
commit ae636994cd
Notes: blender-bot 2023-02-14 02:22:07 +01:00
Referenced by issue #89531, Cycles Hair broken with GPU rendering
1 changed files with 2 additions and 3 deletions

View File

@ -689,12 +689,11 @@ typedef enum PrimitiveType {
PRIMITIVE_MOTION_CURVE_THICK = (1 << 3),
PRIMITIVE_CURVE_RIBBON = (1 << 4),
PRIMITIVE_MOTION_CURVE_RIBBON = (1 << 5),
PRIMITIVE_VOLUME = (1 << 6),
/* Lamp primitive is not included below on purpose,
* since it is no real traceable primitive.
*/
PRIMITIVE_LAMP = (1 << 6),
PRIMITIVE_VOLUME = (1 << 7),
PRIMITIVE_LAMP = (1 << 7),
PRIMITIVE_ALL_TRIANGLE = (PRIMITIVE_TRIANGLE | PRIMITIVE_MOTION_TRIANGLE),
PRIMITIVE_ALL_CURVE = (PRIMITIVE_CURVE_THICK | PRIMITIVE_MOTION_CURVE_THICK |