From 4f04795ef6f9d074542fbdaa12c9d35f91668992 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 12 Jun 2015 14:24:46 +0200 Subject: [PATCH] Ndk/GraphicsComponent: Fix data depending on transform matrix not updating Former-commit-id: 993d1d31eca9a296fce09bb21e07a684f9e24220 --- SDK/include/NDK/Components/GraphicsComponent.inl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SDK/include/NDK/Components/GraphicsComponent.inl b/SDK/include/NDK/Components/GraphicsComponent.inl index ad145121d..21e371e28 100644 --- a/SDK/include/NDK/Components/GraphicsComponent.inl +++ b/SDK/include/NDK/Components/GraphicsComponent.inl @@ -48,6 +48,9 @@ namespace Ndk inline void GraphicsComponent::InvalidateTransformMatrix() { + for (Renderable& r : m_renderables) + r.dataUpdated = false; + m_transformMatrixUpdated = false; } }