From 961b0722baf577277b32ef88a4123531e3f55d52 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 15 Nov 2009 22:56:58 +0000 Subject: [PATCH] pp --- CMakeLists.txt | 2 +- Graphics/drawMesh.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a379d4a624..66303ba645 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ set(GMSH_API ${CMAKE_BINARY_DIR}/Common/GmshConfig.h ${CMAKE_BINARY_DIR}/Common/GmshVersion.h Common/Gmsh.h Common/GmshDefines.h Common/GmshMessage.h Common/VertexArray.h - Numeric/Numeric.h Numeric/Gauss.h Numeric/functionSpace.h Numeric/fullMatrix.h + Numeric/Numeric.h Numeric/Gauss.h Numeric/polynomialBasis.h Numeric/fullMatrix.h Numeric/simpleFunction.h Numeric/cartesian.h Geo/GModel.h Geo/GEntity.h Geo/GPoint.h Geo/GVertex.h Geo/GEdge.h Geo/GFace.h Geo/GRegion.h Geo/GEdgeLoop.h Geo/GEdgeCompound.h diff --git a/Graphics/drawMesh.cpp b/Graphics/drawMesh.cpp index 1c3404d16a..156a46f871 100644 --- a/Graphics/drawMesh.cpp +++ b/Graphics/drawMesh.cpp @@ -980,13 +980,13 @@ void drawContext::drawMesh() // make sure to flag any model-dependent post-processing view as // changed if the underlying mesh has, before resetting the changed // flag - for(unsigned int i = 0; i < GModel::list.size(); i++){ - GModel *m = GModel::list[i]; - for(unsigned int j = 0; j < PView::list.size(); j++) - if(PView::list[j]->getData()->hasModel(m) && CTX::instance()->mesh.changed) - PView::list[j]->setChanged(true); + if(CTX::instance()->mesh.changed){ + for(unsigned int i = 0; i < GModel::list.size(); i++) + for(unsigned int j = 0; j < PView::list.size(); j++) + if(PView::list[j]->getData()->hasModel(GModel::list[i])) + PView::list[j]->setChanged(true); } - + glPointSize((float)CTX::instance()->mesh.pointSize); gl2psPointSize((float)(CTX::instance()->mesh.pointSize * CTX::instance()->print.epsPointSizeFactor)); -- GitLab