Added missing .get()'s
This commit is contained in:
parent
3491e29bb0
commit
5a9fbd60e6
@ -237,7 +237,7 @@ Track* computeSmoothedTrack(Track* track)
|
|||||||
itr != track->getTrackSegments().end();
|
itr != track->getTrackSegments().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
new_track->addTrackSegment(computeSmoothedTrackSegment(*itr));
|
new_track->addTrackSegment(computeSmoothedTrackSegment(itr->get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new_track.release();
|
return new_track.release();
|
||||||
@ -323,28 +323,28 @@ int main(int argv, char **argc)
|
|||||||
itr != track->getTrackSegments().end();
|
itr != track->getTrackSegments().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
*itr = computeSmoothedTrackSegment(*itr);
|
*itr = computeSmoothedTrackSegment(itr->get());
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
||||||
itr != track->getTrackSegments().end();
|
itr != track->getTrackSegments().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
*itr = computeSmoothedTrackSegment(*itr);
|
*itr = computeSmoothedTrackSegment(itr->get());
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
||||||
itr != track->getTrackSegments().end();
|
itr != track->getTrackSegments().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
*itr = computeSmoothedTrackSegment(*itr);
|
*itr = computeSmoothedTrackSegment(itr->get());
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
|
||||||
itr != track->getTrackSegments().end();
|
itr != track->getTrackSegments().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
*itr = computeSmoothedTrackSegment(*itr);
|
*itr = computeSmoothedTrackSegment(itr->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,17 +25,17 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
// create scene
|
// create scene
|
||||||
osg::ref_ptr<osg::Group> root = new osg::Group;
|
osg::ref_ptr<osg::Group> root = new osg::Group;
|
||||||
root->addChild(outline);
|
root->addChild(outline.get());
|
||||||
|
|
||||||
osg::ref_ptr<osg::Node> model0 = osgDB::readNodeFile(arguments.argc() > 1 ? arguments[1] : "al.obj");
|
osg::ref_ptr<osg::Node> model0 = osgDB::readNodeFile(arguments.argc() > 1 ? arguments[1] : "al.obj");
|
||||||
outline->addChild(model0);
|
outline->addChild(model0.get());
|
||||||
|
|
||||||
// must have stencil buffer...
|
// must have stencil buffer...
|
||||||
osg::DisplaySettings::instance()->setMinimumNumStencilBits(1);
|
osg::DisplaySettings::instance()->setMinimumNumStencilBits(1);
|
||||||
|
|
||||||
// construct the viewer
|
// construct the viewer
|
||||||
osgViewer::Viewer viewer;
|
osgViewer::Viewer viewer;
|
||||||
viewer.setSceneData(root);
|
viewer.setSceneData(root.get());
|
||||||
|
|
||||||
// must clear stencil buffer...
|
// must clear stencil buffer...
|
||||||
unsigned int clearMask = viewer.getCamera()->getClearMask();
|
unsigned int clearMask = viewer.getCamera()->getClearMask();
|
||||||
|
Loading…
Reference in New Issue
Block a user