diff options
Diffstat (limited to 'sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch')
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch index 6f77fbdea979..4adec4944492 100644 --- a/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch +++ b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch @@ -16,3 +16,16 @@ set(opencascade_missing_targets) foreach (opencascade_req_target IN LISTS opencascade_req_targets) if (NOT TARGET "${opencascade_req_target}") +diff --git a/IO/OCCT/vtkOCCTReader.cxx b/IO/OCCT/vtkOCCTReader.cxx +index 52e76be..7235309 100644 +--- a/IO/OCCT/vtkOCCTReader.cxx ++++ b/IO/OCCT/vtkOCCTReader.cxx +@@ -348,7 +348,7 @@ public: + int GetHash(const TDF_Label& label) + { + TopoDS_Shape aShape; +- return this->ShapeTool->GetShape(label, aShape) ? aShape.HashCode(INT_MAX) : 0; ++ return this->ShapeTool->GetShape(label, aShape) ? opencascade::hash(aShape) : 0; + } + + //---------------------------------------------------------------------------- |