* fix rendering of direction arrow of group entities, when origin key is set

This commit is contained in:
Garux 2021-05-07 14:50:16 +03:00
parent c58749c72a
commit 6b699527a3

View File

@ -178,12 +178,12 @@ public:
renderer.PushState();
renderer.Highlight( Renderer::ePrimitive );
renderer.SetState( m_entity.getEntityClass().m_state_fill, Renderer::eFullMaterials );
renderer.addRenderable( m_arrow, localToWorld );
renderer.addRenderable( m_arrow, g_matrix4_identity );
renderer.PopState();
}
else{
renderer.SetState( m_entity.getEntityClass().m_state_fill, Renderer::eFullMaterials );
renderer.addRenderable( m_arrow, localToWorld );
renderer.addRenderable( m_arrow, g_matrix4_identity );
}
}
}
@ -205,11 +205,11 @@ public:
if( selected || childSelected ){
renderer.PushState();
renderer.Highlight( Renderer::ePrimitive );
renderer.addRenderable( m_arrow, localToWorld );
renderer.addRenderable( m_arrow, g_matrix4_identity );
renderer.PopState();
}
else{
renderer.addRenderable( m_arrow, localToWorld );
renderer.addRenderable( m_arrow, g_matrix4_identity );
}
}
}