Fix #137621: Cycles curve info random gives wrong value
Caused by filter width changes in 5ce239cc229931b8225. Pull Request: https://projects.blender.org/blender/blender/pulls/137671
This commit is contained in:
@@ -4725,7 +4725,10 @@ void HairInfoNode::compile(SVMCompiler &compiler)
|
||||
out = output("Random");
|
||||
if (!out->links.empty()) {
|
||||
const int attr = compiler.attribute(ATTR_STD_CURVE_RANDOM);
|
||||
compiler.add_node(NODE_ATTR, attr, compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT);
|
||||
compiler.add_node(NODE_ATTR,
|
||||
attr,
|
||||
compiler.encode_uchar4(compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT),
|
||||
__float_as_uint(0.0f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4777,7 +4780,10 @@ void PointInfoNode::compile(SVMCompiler &compiler)
|
||||
out = output("Random");
|
||||
if (!out->links.empty()) {
|
||||
const int attr = compiler.attribute(ATTR_STD_POINT_RANDOM);
|
||||
compiler.add_node(NODE_ATTR, attr, compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT);
|
||||
compiler.add_node(NODE_ATTR,
|
||||
attr,
|
||||
compiler.encode_uchar4(compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT),
|
||||
__float_as_uint(0.0f));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Submodule tests/data updated: abac1749ba...cb97b1445f
@@ -117,7 +117,7 @@ BLOCKLIST_GPU = [
|
||||
'denoise_hair.blend',
|
||||
'hair_basemesh_intercept.blend',
|
||||
'hair_instancer_uv.blend',
|
||||
'hair_length_info.blend',
|
||||
'hair_info.blend',
|
||||
'hair_particle_random.blend',
|
||||
"hair_transmission.blend",
|
||||
'principled_hair_.*.blend',
|
||||
|
||||
Reference in New Issue
Block a user