Revert "Fix illegal address error in Cycles Light Tree when no emitter is selected"

This reverts commit 206ab6437b.

Seems that the illegal address error should be covered elsewhere, but it's not directly
clear where. Revert the commit for further investigation.
This commit is contained in:
Weizhen Huang
2023-08-23 12:42:57 +02:00
parent beaf4854b1
commit 3cd14df7d8
+1 -1
View File
@@ -596,7 +596,7 @@ ccl_device int light_tree_cluster_select_emitter(KernelGlobals kg,
has_importance |= ((importance[0] > 0) << i);
}
if (total_importance[0] == 0.0f || selected_index == -1) {
if (total_importance[0] == 0.0f) {
return -1;
}