Skip to content
Snippets Groups Projects
Commit e27c59d2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent c6a108ed
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class PViewDataRemote : public PViewData { ...@@ -69,7 +69,7 @@ class PViewDataRemote : public PViewData {
setDirty(true); setDirty(true);
std::string fileName = CTX::instance()->homeDir + CTX::instance()->tmpFileName; std::string fileName = CTX::instance()->homeDir + CTX::instance()->tmpFileName;
// FIXME: until we rewrite the option code and allow nice serialization ;-) // 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); std::string options = ConvertFileToString(fileName);
server->SendString(GmshSocket::GMSH_PARSE_STRING, options.c_str()); server->SendString(GmshSocket::GMSH_PARSE_STRING, options.c_str());
server->SendString(GmshSocket::GMSH_VERTEX_ARRAY, "Send the vertex arrays!"); server->SendString(GmshSocket::GMSH_VERTEX_ARRAY, "Send the vertex arrays!");
......
...@@ -1067,6 +1067,9 @@ class initPView { ...@@ -1067,6 +1067,9 @@ class initPView {
if(data->getDirty() || !data->getNumTimeSteps() || !p->getChanged()) return; if(data->getDirty() || !data->getNumTimeSteps() || !p->getChanged()) return;
if(!opt->visible || opt->type != PViewOptions::Plot3D) return; if(!opt->visible || opt->type != PViewOptions::Plot3D) return;
p->deleteVertexArrays();
if(data->fillRemoteVertexArrays()) return; if(data->fillRemoteVertexArrays()) return;
if(opt->useGenRaise) opt->createGeneralRaise(); if(opt->useGenRaise) opt->createGeneralRaise();
...@@ -1086,7 +1089,6 @@ class initPView { ...@@ -1086,7 +1089,6 @@ class initPView {
opt->tmpMax = data->getMax(); opt->tmpMax = data->getMax();
} }
p->deleteVertexArrays();
p->va_points = new VertexArray(1, _estimateNumPoints(p)); p->va_points = new VertexArray(1, _estimateNumPoints(p));
p->va_lines = new VertexArray(2, _estimateNumLines(p)); p->va_lines = new VertexArray(2, _estimateNumLines(p));
p->va_triangles = new VertexArray(3, _estimateNumTriangles(p)); p->va_triangles = new VertexArray(3, _estimateNumTriangles(p));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment