Переглянути джерело

Merge pull request #615 from Areloch/Issue_437

Fixed the crash when using glow material on billboard groundcover
Daniel Buckmaster 11 роки тому
батько
коміт
aca58356ee
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      Engine/source/renderInstance/renderGlowMgr.cpp

+ 1 - 0
Engine/source/renderInstance/renderGlowMgr.cpp

@@ -54,6 +54,7 @@ RenderGlowMgr::GlowMaterialHook::GlowMaterialHook( BaseMatInstance *matInst )
 {
    mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
    mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
+   mGlowMatInst->setUserObject(matInst->getUserObject());
    mGlowMatInst->init(  matInst->getRequestedFeatures(), 
                         matInst->getVertexFormat() );
 }