Skip to content

Commit

Permalink
Force normal generation during mesh loading (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
favreau committed Dec 12, 2017
1 parent fec68e3 commit c68b2f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions brayns/io/MeshLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ bool MeshLoader::importMeshFromFile(const std::string& filename, Scene& scene,
case GeometryQuality::medium:
quality = aiProcessPreset_TargetRealtime_Fast;
break;
default:
case GeometryQuality::high:
quality = aiProcess_GenNormals;
default:
quality = aiProcess_GenSmoothNormals;
break;
}

std::ifstream meshFile(filename, std::ios::in);
Expand Down

0 comments on commit c68b2f8

Please sign in to comment.