summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-04-11 18:42:01 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-04-12 14:40:37 +0200
commit4b659f52b06f688b2ed2a819b4d6a6be18587030 (patch)
tree63f7321fe6cd91ad886a3e4c8f69f5c648e6063a /sci-libs
parentdev-vcs/git-absorb: add completion script (diff)
downloadgentoo-4b659f52b06f688b2ed2a819b4d6a6be18587030.tar.gz
gentoo-4b659f52b06f688b2ed2a819b4d6a6be18587030.tar.bz2
gentoo-4b659f52b06f688b2ed2a819b4d6a6be18587030.zip
sci-libs/vtk: update opencascade-7.8 patch
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36214 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch13
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;
+ }
+
+ //----------------------------------------------------------------------------