]> Creatis software - clitk.git/blobdiff - vv/vvGlyph2D.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvGlyph2D.cxx
index 1856dd272602231ebce81c60c099174390e7c24b..ae1a6b1f3229321f2d176ae548e16f7f47090ff7 100644 (file)
@@ -175,6 +175,10 @@ int vvGlyph2D::RequestData(
 #if VTK_MAJOR_VERSION <= 5
     defaultSource->SetUpdateExtent(0, 1, 0);
     this->SetSource(defaultSource);
+#elif VTK_MAJOR_VERSION >= 8 || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION >= 1)
+    int extentTemp[3] = {0, 1, 0};
+    this->UpdateExtent(extentTemp);
+    this->SetSourceData(defaultSource);
 #else
     this->SetUpdateExtent(0, 1, 0);
     this->SetSourceData(defaultSource);