mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-07 19:23:58 +03:00
Move parent node attachment out of nifloader
This commit is contained in:
parent
ff9e2b03a0
commit
36ad40827b
4 changed files with 20 additions and 22 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue