From b79ab1a3b847e3f457b6c32c81f81f8f1fc0502b Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 15 Jun 2015 02:22:52 +0200 Subject: [PATCH] Fix InverseWorldMatrix bug introduced by last commit --- components/nifosg/nifloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 69e71cce4..40eedad51 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -394,7 +394,7 @@ namespace NifOsg osg::Node* child = node->getChild(i); if (i == node->getNumChildren()-1) // FIXME: some nicer way to determine where our actual Drawable resides... { - child->setUpdateCallback(node->getUpdateCallback()); + child->addUpdateCallback(node->getUpdateCallback()); child->setStateSet(node->getStateSet()); child->setName(node->getName()); // make sure to copy the UserDataContainer with the record index, so that connections to an animated collision shape don't break