Hello All,
I have been using the lws plugin and I think I found a small bug that was
causing some of the nodes to not be named (specifically when forward
referencing a parent).  Not sure what the specifics are to making a
submission, but here is the change:

SceneLoader.cpp  Starting at line 156:


if (!pat.valid()) {
    pat = new osg::PositionAttitudeTransform;
    pat->setName(i->name);
    pats[j] = pat;
}

pat->addChild(i->layer_node.get());


Should be this:

if (!pat.valid()) {
    pat = new osg::PositionAttitudeTransform;
    pats[j] = pat;
}
pat->setName(i->name);
pat->addChild(i->layer_node.get());


Regards and thanks to whomever wrote the lwo and lws plugins (Marco Jez I
think).  I know I am probably one of the few using it, but I am hoping to
make some enhancements to it as I progress.  Anyone else using LightWave?

-- Rick
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to