BIM: fix self.Type regression for Wall, Stairs and Structure (#23476)
* BIM: fix self.Type regression for Wall * BIM: fix self.Type regression for Stairs * BIM: fix self.Type regression for Structure
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user