Cycles: Fix build error due to missing svm_closure_weight

This commit is contained in:
Lukas Stockner
2023-07-24 16:56:52 +02:00
parent 7c3a779bc2
commit b19011e2db

View File

@@ -542,7 +542,7 @@ ccl_device_noinline int svm_node_closure_bsdf(KernelGlobals kg,
break;
}
case CLOSURE_BSDF_SHEEN_ID: {
Spectrum weight = sd->svm_closure_weight * mix_weight;
Spectrum weight = closure_weight * mix_weight;
ccl_private SheenBsdf *bsdf = (ccl_private SheenBsdf *)bsdf_alloc(
sd, sizeof(SheenBsdf), weight);