Преглед на файлове

Fixed the assert crash by making sure the glow material instance keeps the original material instance's user object

Areloch преди 11 години
родител
ревизия
4594a13740
променени са 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() );
 }