Sdk/GraphicsComponent: Fix local matrix not being copied

This commit is contained in:
Lynix 2017-12-06 21:12:51 +01:00
parent 503378ed47
commit 7772d56c66
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace Ndk
{ {
m_renderables.reserve(graphicsComponent.m_renderables.size()); m_renderables.reserve(graphicsComponent.m_renderables.size());
for (const Renderable& r : graphicsComponent.m_renderables) for (const Renderable& r : graphicsComponent.m_renderables)
Attach(r.renderable, r.data.renderOrder); Attach(r.renderable, r.data.localMatrix, r.data.renderOrder);
} }
inline void GraphicsComponent::AddToCullingList(GraphicsComponentCullingList* cullingList) const inline void GraphicsComponent::AddToCullingList(GraphicsComponentCullingList* cullingList) const