Skip to content

Commit

Permalink
Fix race condition in continuation nvm and cam/folder scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoehrle committed Jan 21, 2018
1 parent 413c4dc commit 20bf2a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/tex/generate_texture_views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ generate_texture_views(std::string const & in_scene,
from_mve_scene(scene_dir, image_name, texture_views);
}

std::sort(texture_views->begin(), texture_views->end(),
[] (TextureView const & l, TextureView const & r) -> bool {
return l.get_id() < r.get_id();
}
);

std::size_t num_views = texture_views->size();
if (num_views == 0) {
std::cerr
Expand Down

0 comments on commit 20bf2a8

Please sign in to comment.