Correctly initialize module matrices in raytracer

Initialize module matrices to identity matrices instead of default zero
matrices while creating scenes for raytracer. This fixes disappearing
modules in raytracer view.

Fixes: lp:1763026
* https://bugs.launchpad.net/kicad/+bug/1763026
This commit is contained in:
Ievgenii Meshcheriakov 2018-04-11 18:23:35 +02:00 committed by Seth Hillbrand
parent c1ae2fd0a8
commit 18b0b78397
1 changed files with 1 additions and 1 deletions

View File

@ -1211,7 +1211,7 @@ void C3D_RENDER_RAYTRACING::load_3D_models()
wxPoint pos = module->GetPosition();
glm::mat4 moduleMatrix = glm::mat4();
glm::mat4 moduleMatrix = glm::mat4( 1.0f );
moduleMatrix = glm::translate( moduleMatrix,
SFVEC3F( pos.x * m_settings.BiuTo3Dunits(),