[ArchWall] Further fix dumps()
Noted simply super().dumps() won't work as original method return dumps information.
This commit is contained in:
committed by
Yorik van Havre
parent
aaf54262c4
commit
578640381a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user