BGE: "Fix" for issue [#33663] "Objects Share Materials / Textures When Grouped In...
[blender.git] / source / gameengine / GamePlayer / ghost / GPG_Application.cpp
index 1dcc68c8e75685ee44a4c68e8bacb2fdbb7aefa2..89d11515bb33d36525d88f69e85adb6fe3be6e31 100644 (file)
@@ -703,6 +703,8 @@ bool GPG_Application::startEngine(void)
                        m_sceneconverter->SetMaterials(true);
                if (m_blenderglslmat && (m_globalSettings->matmode == GAME_MAT_GLSL))
                        m_sceneconverter->SetGLSLMaterials(true);
+               if (m_startScene->gm.flag & GAME_NO_MATERIAL_CACHING)
+                       m_sceneconverter->SetCacheMaterials(false);
 
                KX_Scene* startscene = new KX_Scene(m_keyboard,
                        m_mouse,