From c94c87d40942ae63ebb5c8489019d32c823989fc Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 11 Jun 2015 16:22:09 +0200 Subject: [PATCH] Attach effects to the insert node instead of the object root (Bug #2654) --- apps/openmw/mwrender/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index d92e57f19f..261ec6c5b5 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -1060,7 +1060,7 @@ namespace MWRender params.mModelName = model; osg::ref_ptr parentNode; if (bonename.empty()) - parentNode = mObjectRoot->asGroup(); + parentNode = mInsert; else { NodeMap::iterator found = mNodeMap.find(Misc::StringUtils::lowerCase(bonename));