Skip to content

Commit

Permalink
properly initialize root transformation matrix
Browse files Browse the repository at this point in the history
Closes: #125
  • Loading branch information
umlaeute committed Nov 24, 2016
1 parent 794d125 commit 4d4c2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modelASSIMP3/modelASSIMP3.cpp
Expand Up @@ -447,8 +447,8 @@ bool modelASSIMP3 :: compile(void) {
m_texcoords.clear();
m_colors.clear();

aiMatrix4x4 trafo;
aiIdentityMatrix4(&trafo);
aiMatrix4x4 trafo = aiMatrix4x4(aiVector3t<float>(m_scale), aiQuaterniont<float>(), m_offset);

recursive_render(m_scene, m_scene, m_scene->mRootNode, m_useMaterial, m_vertices, m_normals, m_texcoords, m_colors, &trafo);
fillVBOarray();
if(useColorMaterial)
Expand Down

0 comments on commit 4d4c2be

Please sign in to comment.