فهرست منبع

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 = (MatInstance*)matInst->getMaterial()->createMatInstance();
    mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
    mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
+   mGlowMatInst->setUserObject(matInst->getUserObject());
    mGlowMatInst->init(  matInst->getRequestedFeatures(), 
    mGlowMatInst->init(  matInst->getRequestedFeatures(), 
                         matInst->getVertexFormat() );
                         matInst->getVertexFormat() );
 }
 }