From 578640381a41c1bd87dbb987fd7caffd4af79a74 Mon Sep 17 00:00:00 2001 From: Paul Lee Date: Sun, 1 Dec 2024 16:45:04 +0800 Subject: [PATCH] [ArchWall] Further fix dumps() Noted simply super().dumps() won't work as original method return dumps information. --- src/Mod/BIM/ArchWall.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/ArchWall.py b/src/Mod/BIM/ArchWall.py index 4bb02da578..79fa33191f 100644 --- a/src/Mod/BIM/ArchWall.py +++ b/src/Mod/BIM/ArchWall.py @@ -223,8 +223,11 @@ class _Wall(ArchComponent.Component): self.Type = "Wall" def dumps(self): - super().dumps() - return self.ArchSkPropSetPickedUuid, self.ArchSkPropSetListPrev + dump = super().dumps() + if not isinstance(dump, tuple): + dump = (dump,) #Python Tuple With One Item + dump = dump + (self.ArchSkPropSetPickedUuid, self.ArchSkPropSetListPrev) + return dump def loads(self,state): super().loads(state) # do nothing as of 2024.11.28