From e27c59d27b64cf65b86acef2cf620ba4afa84e5b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 28 Sep 2009 19:44:44 +0000 Subject: [PATCH] *** empty log message *** --- Post/PViewDataRemote.h | 2 +- Post/PViewVertexArrays.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Post/PViewDataRemote.h b/Post/PViewDataRemote.h index 69df8c7f17..0c81c9e18b 100644 --- a/Post/PViewDataRemote.h +++ b/Post/PViewDataRemote.h @@ -69,7 +69,7 @@ class PViewDataRemote : public PViewData { setDirty(true); std::string fileName = CTX::instance()->homeDir + CTX::instance()->tmpFileName; // FIXME: until we rewrite the option code and allow nice serialization ;-) - PrintOptions(0, GMSH_FULLRC, 1, 0, fileName.c_str()); + PrintOptions(0, GMSH_FULLRC, 0, 0, fileName.c_str()); std::string options = ConvertFileToString(fileName); server->SendString(GmshSocket::GMSH_PARSE_STRING, options.c_str()); server->SendString(GmshSocket::GMSH_VERTEX_ARRAY, "Send the vertex arrays!"); diff --git a/Post/PViewVertexArrays.cpp b/Post/PViewVertexArrays.cpp index 494eecb0d9..112f6147b9 100644 --- a/Post/PViewVertexArrays.cpp +++ b/Post/PViewVertexArrays.cpp @@ -1067,6 +1067,9 @@ class initPView { if(data->getDirty() || !data->getNumTimeSteps() || !p->getChanged()) return; if(!opt->visible || opt->type != PViewOptions::Plot3D) return; + + p->deleteVertexArrays(); + if(data->fillRemoteVertexArrays()) return; if(opt->useGenRaise) opt->createGeneralRaise(); @@ -1086,7 +1089,6 @@ class initPView { opt->tmpMax = data->getMax(); } - p->deleteVertexArrays(); p->va_points = new VertexArray(1, _estimateNumPoints(p)); p->va_lines = new VertexArray(2, _estimateNumLines(p)); p->va_triangles = new VertexArray(3, _estimateNumTriangles(p)); -- GitLab