Draft: Bugfixing

+ All Draft (and Arch) objects now correctly get/set theiir type on save/load
+ Draft Shape2DView now produces valid shapes
This commit is contained in:
Yorik van Havre
2012-09-04 12:07:26 -03:00
parent 522c538ac4
commit 71e3b56509
5 changed files with 142 additions and 89 deletions

View File

@@ -265,6 +265,13 @@ class Component:
obj.Proxy = self
self.Type = "Component"
self.Subvolume = None
def __getstate__(self):
return self.Type
def __setstate__(self,state):
if state:
self.Type = state
class ViewProviderComponent:
"A default View Provider for Component objects"