[ArchWall] Further fix dumps()

Noted simply super().dumps() won't work as original method return dumps information.
This commit is contained in:
Paul Lee
2024-12-01 16:45:04 +08:00
committed by Yorik van Havre
parent aaf54262c4
commit 578640381a

View File

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