瀏覽代碼

small change in viewer

Former-commit-id: 119572eb003e25032eb07bb71915d8492587adcd
schuellc 10 年之前
父節點
當前提交
aab40871b9
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      include/igl/viewer/Viewer.cpp

+ 6 - 6
include/igl/viewer/Viewer.cpp

@@ -626,12 +626,12 @@ namespace viewer
 #ifdef ENABLE_SERIALIZATION
 
     igl::serialize(core,"Core",fname.c_str(),true);
-#ifndef ENABLE_SERIALIZATION_DATA_SEPARATION
-    igl::serialize(data,"Data",fname.c_str());
-#endif
 
+#ifndef ENABLE_SERIALIZATION_CORE_ONLY
+    igl::serialize(data,"Data",fname.c_str());
     for(unsigned int i = 0; i <plugins.size(); ++i)
       igl::serialize(*plugins[i],plugins[i]->plugin_name,fname.c_str());
+#endif
 
 #endif
 
@@ -652,12 +652,12 @@ namespace viewer
 #ifdef ENABLE_SERIALIZATION
 
     igl::deserialize(core,"Core",fname.c_str());
-#ifndef ENABLE_SERIALIZATION_DATA_SEPARATION
-    igl::deserialize(data,"Data",fname.c_str());
-#endif
 
+#ifndef ENABLE_SERIALIZATION_CORE_ONLY
+    igl::deserialize(data,"Data",fname.c_str());
     for(unsigned int i = 0; i <plugins.size(); ++i)
       igl::deserialize(*plugins[i],plugins[i]->plugin_name,fname.c_str());
+#endif
 
 #endif