From 2a88600ede3a2df33c1767dd08c224a116a31fdc Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 26 Feb 2017 18:31:27 +0000
Subject: [PATCH] disabling color sync for now: there's a bug

---
 Parser/Gmsh.tab.cpp | 8 ++++++--
 Parser/Gmsh.y       | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp
index 5d3d3384a2..6ba76f55fb 100644
--- a/Parser/Gmsh.tab.cpp
+++ b/Parser/Gmsh.tab.cpp
@@ -14212,8 +14212,12 @@ void setColor(std::vector<int> tags[4], unsigned int val, bool recursive)
   if(GModel::current()->getOCCInternals() &&
      GModel::current()->getOCCInternals()->getChanged())
     GModel::current()->getOCCInternals()->synchronize(GModel::current());
-  if(GModel::current()->getGEOInternals()->getChanged())
-    GModel::current()->getGEOInternals()->synchronize(GModel::current());
+
+  // FIXME: sync in the middle of some geo files leads to crashes: disabling
+  // until I figure it out
+
+  //if(GModel::current()->getGEOInternals()->getChanged())
+  //    GModel::current()->getGEOInternals()->synchronize(GModel::current());
 
   for(int dim = 0; dim < 4; dim++){
     for(unsigned int i = 0; i < tags[dim].size(); i++){
diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y
index a55b82c2ce..68150ba2ff 100644
--- a/Parser/Gmsh.y
+++ b/Parser/Gmsh.y
@@ -6739,8 +6739,12 @@ void setColor(std::vector<int> tags[4], unsigned int val, bool recursive)
   if(GModel::current()->getOCCInternals() &&
      GModel::current()->getOCCInternals()->getChanged())
     GModel::current()->getOCCInternals()->synchronize(GModel::current());
-  if(GModel::current()->getGEOInternals()->getChanged())
-    GModel::current()->getGEOInternals()->synchronize(GModel::current());
+
+  // FIXME: sync in the middle of some geo files leads to crashes: disabling
+  // until I figure it out
+
+  //if(GModel::current()->getGEOInternals()->getChanged())
+  //    GModel::current()->getGEOInternals()->synchronize(GModel::current());
 
   for(int dim = 0; dim < 4; dim++){
     for(unsigned int i = 0; i < tags[dim].size(); i++){
-- 
GitLab