Arch: make new property to use shape color instead of material color working for all Arch objs

This commit is contained in:
Bernd Hahnebach
2019-08-14 21:39:52 +02:00
parent 09d0b2d0e7
commit bdf1abacc7
3 changed files with 18 additions and 0 deletions

View File

@@ -231,6 +231,9 @@ class _ViewProviderFence(ArchComponent.ViewProviderComponent):
def __init__(self, vobj):
ArchComponent.ViewProviderComponent.__init__(self, vobj)
# setProperties of ArchComponent will be overwritten
# thus setProperties from ArchComponent will be explicit called to get the properties
ArchComponent.ViewProviderComponent.setProperties(self, vobj)
self.setProperties(vobj)
def setProperties(self, vobj):

View File

@@ -825,6 +825,11 @@ class PanelView:
def __init__(self, obj):
obj.Proxy = self
# setProperties of ArchComponent will be overwritten
# thus setProperties from ArchComponent will be explicit called to get the properties
ArchComponent.ViewProviderComponent.setProperties(self, vobj)
self.setProperties(obj)
obj.X = 10
obj.Y = 10
@@ -924,6 +929,11 @@ class PanelCut(Draft._DraftObject):
def __init__(self, obj):
Draft._DraftObject.__init__(self,obj)
obj.Proxy = self
# setProperties of ArchComponent will be overwritten
# thus setProperties from ArchComponent will be explicit called to get the properties
ArchComponent.ViewProviderComponent.setProperties(self, vobj)
self.setProperties(obj)
def setProperties(self,obj):

View File

@@ -896,6 +896,11 @@ class _ViewProviderStructure(ArchComponent.ViewProviderComponent):
def __init__(self,vobj):
ArchComponent.ViewProviderComponent.__init__(self,vobj)
# setProperties of ArchComponent will be overwritten
# thus setProperties from ArchComponent will be explicit called to get the properties
ArchComponent.ViewProviderComponent.setProperties(self, vobj)
self.setProperties(vobj)
vobj.ShapeColor = ArchCommands.getDefaultColor("Structure")