Commit 7eea43ac authored by Robert Menzel's avatar Robert Menzel
Browse files

removed unused logging alias, fixed normal calculation bug

parent e35d91aa
...@@ -178,14 +178,6 @@ inline CoutLikeStream<3>& error() { return (*CoutLikeStream<3>::the()); } ...@@ -178,14 +178,6 @@ inline CoutLikeStream<3>& error() { return (*CoutLikeStream<3>::the()); }
template < unsigned int N > template < unsigned int N >
inline CoutLikeStream<N>& log() { return (*CoutLikeStream<N>::the()); } inline CoutLikeStream<N>& log() { return (*CoutLikeStream<N>::the()); }
// alternative syntax
#define ACGL_DEBUG(STREAM) ACGL::Utils::debug() << STREAM;
#define ACGL_MESSAGE(STREAM) ACGL::Utils::message() << STREAM;
#define ACGL_WARNING(STREAM) ACGL::Utils::warning() << STREAM;
#define ACGL_ERROR(STREAM) ACGL::Utils::error() << STREAM;
#define ACGL_LOG(N,STREAM) ACGL::Utils::log<N>() << STREAM;
} // Utils } // Utils
} // ACGL } // ACGL
......
...@@ -276,8 +276,7 @@ SharedGeometryData loadGeometryDataFromOBJ(const std::string& _filename, bool _c ...@@ -276,8 +276,7 @@ SharedGeometryData loadGeometryDataFromOBJ(const std::string& _filename, bool _c
debug() << "model has no normals, computing face normals" << std::endl; debug() << "model has no normals, computing face normals" << std::endl;
hasNormals = true; hasNormals = true;
} }
} } else if (hasNormals) {
if (hasNormals) {
// if the model has normals defined, no face normals have to get computed // if the model has normals defined, no face normals have to get computed
_computeNormals = false; _computeNormals = false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment