From bc376e6649b9d0f6e9f1da01b3410c2b5b9127db Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 13 Feb 2014 17:41:24 +0100 Subject: [PATCH] Closes #888: Treat "Bip 01" as animation root if existing --- apps/openmw/mwrender/animation.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 44bba90d0..b3aa0cd85 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -285,6 +285,17 @@ void Animation::addAnimSource(const std::string &model) } } + if (grp == 0 && dstval->getNode()->getName() == "Bip01") + { + mNonAccumRoot = dstval->getNode(); + mAccumRoot = mNonAccumRoot->getParent(); + if(!mAccumRoot) + { + std::cerr<< "Non-Accum root for "<