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:
parent
c1ae2fd0a8
commit
18b0b78397
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue