mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue