Commit ba123b99 authored by Mike Kremer's avatar Mike Kremer

Fixed OpenFlipper crash when computing curvature textures on Darwin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11407 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 23a48fd6
......@@ -122,7 +122,11 @@ void LaplaceLengthPlugin::computeLaplaceLength(MeshT* _mesh) {
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
handles.push_back( v_it.handle() );
#ifdef USE_OPENMP
/*
* OpenMP parallelization fails for some
* reason on Darwin architectures.
*/
#if defined(USE_OPENMP) && !defined(__APPLE__)
#pragma omp parallel for
#endif
for ( int i = 0 ; i < (int)handles.size(); ++i ) {
......@@ -167,7 +171,11 @@ void LaplaceLengthPlugin::computeLaplaceSquaredLength(MeshT* _mesh) {
for ( typename MeshT::VertexIter v_it = _mesh->vertices_begin() ; v_it != _mesh->vertices_end(); ++v_it)
handles.push_back( v_it.handle() );
#ifdef USE_OPENMP
/*
* OpenMP parallelization fails for some
* reason on Darwin architectures.
*/
#if defined(USE_OPENMP) && !defined(__APPLE__)
#pragma omp parallel for
#endif
for ( int i = 0 ; i < (int)handles.size(); ++i ) {
......
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