Make sure materials are updated before passing to renderer in game

engine - report by Dalai on irc.
This commit is contained in:
Antonis Ryakiotakis 2014-12-03 18:11:57 +01:00
parent 58005e135b
commit 76bfce231a
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #42791, UV-Mapped texture not displaying correctly in object mode when GLSL is on in textured mode
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ bool BL_ModifierDeformer::Update(void)
m_dm->release(m_dm);
// HACK! use deformedOnly as a user counter
m_dm->deformedOnly = 1;
DM_update_materials(m_dm, blendobj);
/* update the graphic controller */
PHY_IGraphicController *ctrl = m_gameobj->GetGraphicController();
if (ctrl) {