diff --git a/src/Mod/BIM/ArchStairs.py b/src/Mod/BIM/ArchStairs.py index 6c7969afd0..f5964bbf11 100644 --- a/src/Mod/BIM/ArchStairs.py +++ b/src/Mod/BIM/ArchStairs.py @@ -237,7 +237,7 @@ class _Stairs(ArchComponent.Component): def loads(self,state): - super().loads(state) # do nothing as of 2024.11.28 + self.Type = "Stairs" if state == None: return elif state[0] == 'S': # state[1] == 't', behaviour before 2024.11.28 @@ -248,7 +248,6 @@ class _Stairs(ArchComponent.Component): elif state[0] != 'Stairs': # model before merging super.dumps/loads() self.ArchSkPropSetPickedUuid = state[0] self.ArchSkPropSetListPrev = state[1] - self.Type = "Stairs" def onDocumentRestored(self,obj): diff --git a/src/Mod/BIM/ArchStructure.py b/src/Mod/BIM/ArchStructure.py index 371f5b2a13..5b6123a14c 100644 --- a/src/Mod/BIM/ArchStructure.py +++ b/src/Mod/BIM/ArchStructure.py @@ -737,7 +737,7 @@ class _Structure(ArchComponent.Component): def loads(self,state): - super().loads(state) # do nothing as of 2024.11.28 + self.Type = "Structure" if state == None: return elif state[0] == 'S': # state[1] == 't', behaviour before 2024.11.28 @@ -748,7 +748,6 @@ class _Structure(ArchComponent.Component): elif state[0] != 'Structure': # model before merging super.dumps/loads() self.ArchSkPropSetPickedUuid = state[0] self.ArchSkPropSetListPrev = state[1] - self.Type = "Structure" def onDocumentRestored(self,obj): diff --git a/src/Mod/BIM/ArchWall.py b/src/Mod/BIM/ArchWall.py index 0e9554fff3..b06dce6a91 100644 --- a/src/Mod/BIM/ArchWall.py +++ b/src/Mod/BIM/ArchWall.py @@ -239,7 +239,7 @@ class _Wall(ArchComponent.Component): return dump def loads(self,state): - super().loads(state) # do nothing as of 2024.11.28 + self.Type = "Wall" if state == None: return elif state[0] == 'W': # state[1] == 'a', behaviour before 2024.11.28 @@ -250,7 +250,6 @@ class _Wall(ArchComponent.Component): elif state[0] != 'Wall': # model before merging super.dumps/loads() self.ArchSkPropSetPickedUuid = state[0] self.ArchSkPropSetListPrev = state[1] - self.Type = "Wall" def onDocumentRestored(self,obj): """Method run when the document is restored. Re-adds the Arch component, and Arch wall properties."""