Move parent node attachment out of nifloader

This commit is contained in:
scrawl 2015-03-23 16:17:40 +01:00
parent ff9e2b03a0
commit 36ad40827b
4 changed files with 20 additions and 22 deletions

View file

@ -114,7 +114,7 @@ int main(int argc, char** argv)
osg::Group* newNode = new osg::Group;
NifOsg::Loader loader;
loader.resourceManager = &resourceMgr;
loader.loadAsSkeleton(nif, newNode);
newNode->addChild(loader.loadAsSkeleton(nif));
osg::PositionAttitudeTransform* trans = new osg::PositionAttitudeTransform;
root->addChild(trans);

View file

@ -60,7 +60,7 @@ void CSVRender::Object::update()
Nif::NIFFilePtr file(new Nif::NIFFile(mVFS->get(path), path));
loader.loadAsSkeleton(file, mBaseNode);
mBaseNode->addChild(loader.loadAsSkeleton(file));
//mObject->setVisibilityFlags (Element_Reference);