From 9a5afb20ec3d7db9252f814c4e058dcbc9cdc346 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 23 Jun 2020 18:45:53 +0300 Subject: [PATCH] Add patch for paraview: #18427 [CEA 18409] "Resample to image" - ParaView crash --- .../paraview.0009-ParaView_volume_mapper.patch | 11 +++++++++++ config/salome.xml | 1 + 2 files changed, 12 insertions(+) create mode 100644 config/patches/paraview.0009-ParaView_volume_mapper.patch diff --git a/config/patches/paraview.0009-ParaView_volume_mapper.patch b/config/patches/paraview.0009-ParaView_volume_mapper.patch new file mode 100644 index 0000000..2b424ee --- /dev/null +++ b/config/patches/paraview.0009-ParaView_volume_mapper.patch @@ -0,0 +1,11 @@ +--- ParaView_origin/VTK/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx 2020-06-18 14:59:43.630941741 +0200 ++++ ParaView/VTK/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx 2020-06-18 15:00:57.582622827 +0200 +@@ -2822,7 +2822,7 @@ + this->VolumePropertyChanged |= property->GetMTime() > this->ShaderBuildTime.GetMTime(); + + auto it = this->Parent->AssembledInputs.find(port); +- if (it == this->Parent->AssembledInputs.cend()) ++ if (it == this->Parent->AssembledInputs.cend() || it->second.Volume != vol) + { + // Create new input structure + auto texture = vtkSmartPointer::New(); diff --git a/config/salome.xml b/config/salome.xml index 6b39097..7d784e0 100644 --- a/config/salome.xml +++ b/config/salome.xml @@ -89,6 +89,7 @@ + -- 2.39.2