diff --git a/Geo/ExtrudeParams.cpp b/Geo/ExtrudeParams.cpp index d895f5c9f4bdb60621d6cf1d89664acab67a4ca0..e19f2f5d8b468e5cbaec6b8b8c7f6d75d2afb242 100644 --- a/Geo/ExtrudeParams.cpp +++ b/Geo/ExtrudeParams.cpp @@ -66,9 +66,10 @@ void ExtrudeParams::Extrude(int iLayer, int iElemLayer, // Trevor Strickler (this definitely relies on fixing lateral boundary // extruded surfaces if mesh.ScaleLast is changed by ReplaceDuplicates. This // is done in BoundaryLayers.cpp right now. - if(geo.Type == BOUNDARY_LAYER && calcLayerScaleFactor[mesh.BoundaryLayerIndex] && - iLayer == mesh.NbLayer-1 && mesh.BoundaryLayerIndex >= 0 && - mesh.BoundaryLayerIndex <= 1 && normals[mesh.BoundaryLayerIndex]){ + if(geo.Type == BOUNDARY_LAYER && iLayer == mesh.NbLayer-1 && + mesh.BoundaryLayerIndex >= 0 && mesh.BoundaryLayerIndex <= 1 && + calcLayerScaleFactor[mesh.BoundaryLayerIndex] && + normals[mesh.BoundaryLayerIndex]){ double scale = 1.0; normals[mesh.BoundaryLayerIndex]->get_scale(x, y, z, &scale); if(fabs(scale-1.0) <= xyzv::eps)