mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixed the assert crash by making sure the glow material instance keeps the original material instance's user object
This commit is contained in:
parent
7ad5d15306
commit
4594a13740
|
|
@ -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() );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue