Skip to content

Commit

Permalink
vwv: allow opening of arbitrary urls as plates
Browse files Browse the repository at this point in the history
  • Loading branch information
novas0x2a committed Oct 18, 2011
1 parent f7d1ecf commit 2e3e817
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vw/gui/TileGenerator.cc
Expand Up @@ -106,9 +106,8 @@ boost::shared_ptr<TileGenerator> TileGenerator::create(std::string filename_) {
return boost::shared_ptr<TileGenerator>( new TestPatternTileGenerator(256) );
else
return boost::shared_ptr<TileGenerator>( new ImageTileGenerator(u.path()) );
} else if (u.scheme() == "pf" && fs::extension(u.path()) == ".plate") {
std::cout << "Loading: " << u.path() << "\n";
return boost::shared_ptr<TileGenerator>( new PlatefileTileGenerator(u.string()) );
} else if (fs::extension(u.path()) == ".plate") {
return boost::shared_ptr<TileGenerator>( new PlatefileTileGenerator(u.string()) );
} else {
std::cerr << "Could not open " << u << ":\n\t" << "No handler for url scheme " << u.scheme() << std::endl;
}
Expand Down

0 comments on commit 2e3e817

Please sign in to comment.