Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Dec 17, 2024
1 parent 513aa45 commit a3e9db1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/osgEarth/AtlasBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,15 @@ AtlasBuilder::build(const ResourceLibrary* inputLib,
// fetch all the skins from the catalog:
SkinResourceVector skins;
out._lib->getSkins( skins );
for(SkinResourceVector::iterator i = skins.begin(); i != skins.end(); ++i)
for(auto& skin : skins)
{
SkinResource* skin = i->get();

// skip skins that say "no atlas please"
if ( skin->atlasHint() == false )
{
continue;
}

osg::ref_ptr<osg::Image> image = skin->createImage( _options.get() );
osg::ref_ptr<osg::Image> image = skin->createColorImage( _options.get() );
if ( image.valid() )
{
OE_INFO << LC << "Loaded skin file: " << skin->imageURI()->full() << std::endl;
Expand Down

0 comments on commit a3e9db1

Please sign in to comment.