From 0feb0143ee125049fccdb5497ca85a0d93f5cc8c Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 1 Feb 2024 21:46:25 +0100 Subject: [PATCH] Arch: Arch_Window round values in getSolidSignature Values in getSolidSignature must be rounded, else matching solids are often not found. --- src/Mod/Arch/ArchWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index 5e9c7d468f..f176dce458 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -1190,7 +1190,7 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent): """Returns a tuple defining as uniquely as possible a solid""" - return (solid.ShapeType,solid.Volume,solid.Area,solid.Length) + return (solid.ShapeType,round(solid.Volume,3),round(solid.Area,3),round(solid.Length,3)) def getSolidMaterial(self,obj,name,mtype=None):