From: Mikko Rasa Date: Thu, 17 Mar 2022 20:00:58 +0000 (+0200) Subject: Call set_matrix from ObjectInstance's transform loader X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=64de7412ba2d6b4c93f0379895bf775f74f00541;p=libs%2Fgl.git Call set_matrix from ObjectInstance's transform loader --- diff --git a/source/render/objectinstance.cpp b/source/render/objectinstance.cpp index 235a1ad6..a41f4e29 100644 --- a/source/render/objectinstance.cpp +++ b/source/render/objectinstance.cpp @@ -37,7 +37,7 @@ void ObjectInstance::Loader::transform() { Transform trn; load_sub(trn); - obj.matrix = trn.to_matrix(); + obj.set_matrix(trn.to_matrix()); } } // namespace GL