1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Attach effects to the insert node instead of the object root (Bug #2654)

This commit is contained in:
scrawl 2015-06-11 16:22:09 +02:00
parent c7493eb45c
commit c94c87d409

View File

@ -1060,7 +1060,7 @@ namespace MWRender
params.mModelName = model;
osg::ref_ptr<osg::Group> parentNode;
if (bonename.empty())
parentNode = mObjectRoot->asGroup();
parentNode = mInsert;
else
{
NodeMap::iterator found = mNodeMap.find(Misc::StringUtils::lowerCase(bonename));