Skip to content

Commit 1618daa

Browse files
fix stupid bug
1 parent f2a51b7 commit 1618daa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nbl/ext/MitsubaLoader/CMitsubaMaterialCompilerFrontend.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ auto CMitsubaMaterialCompilerFrontend::getErrorTexture() const -> tex_ass_type
8686
{
8787
IR::INode::STextureSource tex;
8888
std::tie(tex.image, tex.sampler, tex.scale) = getTexture(src.texture);
89+
dst = std::move(tex);
8990
}
9091
else dst = src.value.fvalue;
9192
};
@@ -95,6 +96,7 @@ auto CMitsubaMaterialCompilerFrontend::getErrorTexture() const -> tex_ass_type
9596
{
9697
IR::INode::STextureSource tex;
9798
std::tie(tex.image, tex.sampler, tex.scale) = getTexture(src.texture,semantic);
99+
dst = std::move(tex);
98100
}
99101
else
100102
dst = src.value.vvalue;
@@ -323,6 +325,7 @@ auto CMitsubaMaterialCompilerFrontend::compileToIRTree(asset::material_compiler:
323325
{
324326
IR::INode::STextureSource tex;
325327
std::tie(tex.image, tex.sampler, tex.scale) = getTexture(src.texture);
328+
dst = std::move(tex);
326329
}
327330
else dst = src.value.fvalue;
328331
};
@@ -332,6 +335,7 @@ auto CMitsubaMaterialCompilerFrontend::compileToIRTree(asset::material_compiler:
332335
{
333336
IR::INode::STextureSource tex;
334337
std::tie(tex.image, tex.sampler, tex.scale) = getTexture(src.texture);
338+
dst = std::move(tex);
335339
}
336340
else dst = src.value.vvalue;
337341
};

0 commit comments

Comments
 (0)