]> git.tdb.fi Git - libs/gl.git/commitdiff
Call set_matrix from ObjectInstance's transform loader
authorMikko Rasa <tdb@tdb.fi>
Thu, 17 Mar 2022 20:00:58 +0000 (22:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 17 Mar 2022 20:06:05 +0000 (22:06 +0200)
source/render/objectinstance.cpp

index 235a1ad6723c0033550a84a98976f52c30a0712f..a41f4e29227670316213d7616572ec4996ce5da0 100644 (file)
@@ -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