Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gwaldron/osgearth
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Jul 1, 2021
2 parents 8e476cb + 078e212 commit 9909159
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/osgEarth/FeatureCursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ FeatureCursor::fill(
while (hasMore())
{
osg::ref_ptr<Feature> f = nextFeature();
if (predicate(f))
if (predicate(f.get()))
list.push_back(f);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/osgEarth/PowerlineLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,9 +1058,9 @@ bool PowerlineFeatureNodeFactory::createOrUpdateNode(FeatureCursor* cursor, cons
for (FeatureList::iterator i = cableFeatures.begin(); i != cableFeatures.end(); ++i)
{
Style localStyle;
evalStyle(*i, localCX, _cableExpr.get(), localStyle);
evalStyle(i->get(), localCX, _cableExpr.get(), localStyle);
setCableStyleDefaults(localStyle);
osg::Node* cable = compiler.compile(*i, localStyle, localCX);
osg::Node* cable = compiler.compile(i->get(), localStyle, localCX);
results->addChild(cable);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/osgEarthDrivers/engine_rex/RexTerrainEngineNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ RexTerrainEngineNode::cull_traverse(osg::NodeVisitor& nv)

if (layerDrawable->_layer)
{
layerDrawable->_layer->apply(layerDrawable, cv);
layerDrawable->_layer->apply(layerDrawable.get(), cv);
}
else
{
Expand Down

0 comments on commit 9909159

Please sign in to comment.