Arch: Arch_Window round values in getSolidSignature

Values in getSolidSignature must be rounded, else matching solids are often not found.
This commit is contained in:
Roy-043
2024-02-01 21:46:25 +01:00
committed by Yorik van Havre
parent a1fcb66536
commit 0feb0143ee

View File

@@ -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):