We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83a66bc commit 5be57c2Copy full SHA for 5be57c2
1 file changed
include/nbl/asset/material_compiler3/CFrontendIR.h
@@ -262,7 +262,11 @@ class CFrontendIR final : public CNodePool
262
}
263
inline CSpectralVariable(const CSpectralVariable& other)
264
{
265
- std::uninitialized_copy_n(other.pWonky(),other.getKnotCount(),pWonky());
+ const auto* const src = other.pWonky();
266
+ auto* const dst = pWonky();
267
+ std::uninitialized_copy_n(src,1,dst);
268
+ const size_t count = other.getKnotCount();
269
+ std::uninitialized_copy_n(src->knots.params+1,count-1,dst->knots.params+1);
270
271
272
// encapsulation due to padding abuse
0 commit comments