Skip to content

Commit 90ee195

Browse files
fixed same bug as blends but for the mixes
1 parent e0c5f4a commit 90ee195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/ext/MitsubaLoader/CMitsubaMaterialCompilerFrontend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ auto CMitsubaMaterialCompilerFrontend::getErrorTexture() const -> tex_ass_type
305305
const size_t cnt = _bsdf->mixturebsdf.childCount;
306306
ir_node->children.count = cnt;
307307
const auto* weightIt = _bsdf->mixturebsdf.weights;
308-
for (int32_t i=cnt-1u; i>=0; --i) // need to add weights in reverse, because children are added using a stack
308+
for (size_t i=0u; i<cnt; i++)
309309
node->weights[i] = *(weightIt++);
310310
}
311311
break;

0 commit comments

Comments
 (0)