Sfoglia il codice sorgente

World matrices not initialized fix. This is a temporary fix

Daniele Bartolini 12 anni fa
parent
commit
45f3a2ca19
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      engine/world/SceneGraph.cpp

+ 1 - 0
engine/world/SceneGraph.cpp

@@ -66,6 +66,7 @@ void SceneGraph::create(uint32_t count, const StringId32* name, const Matrix4x4*
 
 	memset(m_flags, (int) CLEAN, sizeof(uint8_t) * count);
 	memcpy(m_local_poses, local, sizeof(Matrix4x4) * count);
+	memcpy(m_world_poses, local, sizeof(Matrix4x4) * count);
 	memcpy(m_parents, parent, sizeof(int32_t) * count);
 	memcpy(m_names, name, sizeof(StringId32) * count);
 }