Arch: small fix to last commit

This commit is contained in:
Yorik van Havre
2017-05-05 12:52:17 -03:00
parent 96ab2876b5
commit 5353ad67ab

View File

@@ -372,7 +372,10 @@ class _CommandWall:
return w
def setMat(self,d):
if d <= len(self.multimats):
if d == 0:
self.MultiMat = None
del FreeCAD.LastArchMultiMaterial
elif d <= len(self.multimats):
self.MultiMat = self.multimats[d-1]
FreeCAD.LastArchMultiMaterial = self.MultiMat.Name