Arch: remove trailing whitespace
This commit is contained in:
@@ -243,17 +243,17 @@ class _Profile(Draft._DraftObject):
|
||||
def __setstate__(self,state):
|
||||
if isinstance(state,list):
|
||||
self.Profile = state
|
||||
|
||||
|
||||
def cleanProperties(self, obj):
|
||||
|
||||
|
||||
'''Remove all Profile properties'''
|
||||
|
||||
|
||||
obj.removeProperty("Width")
|
||||
obj.removeProperty("Height")
|
||||
obj.removeProperty("WebThickness")
|
||||
obj.removeProperty("FlangeThickness")
|
||||
obj.removeProperty("OutDiameter")
|
||||
obj.removeProperty("Thickness")
|
||||
obj.removeProperty("Thickness")
|
||||
|
||||
|
||||
class _ProfileC(_Profile):
|
||||
@@ -400,8 +400,8 @@ class _ProfileU(_Profile):
|
||||
#p.reverse()
|
||||
obj.Shape = p
|
||||
obj.Placement = pl
|
||||
|
||||
|
||||
|
||||
|
||||
class _ProfileL(_Profile):
|
||||
|
||||
'''A parametric L profile. Profile data: [width, height, thickness]'''
|
||||
@@ -427,8 +427,8 @@ class _ProfileL(_Profile):
|
||||
#p.reverse()
|
||||
obj.Shape = p
|
||||
obj.Placement = pl
|
||||
|
||||
|
||||
|
||||
|
||||
class _ProfileT(_Profile):
|
||||
|
||||
'''A parametric T profile. Profile data: [width, height, web thickness, flange thickness]'''
|
||||
@@ -457,7 +457,7 @@ class _ProfileT(_Profile):
|
||||
#p.reverse()
|
||||
obj.Shape = p
|
||||
obj.Placement = pl
|
||||
|
||||
|
||||
|
||||
class ViewProviderProfile(Draft._ViewProviderDraft):
|
||||
|
||||
@@ -570,7 +570,7 @@ class ProfileTaskPanel:
|
||||
self.Profile = self.currentpresets[idx]
|
||||
|
||||
def accept(self):
|
||||
|
||||
|
||||
self.obj.Label = self.Profile[2]
|
||||
if self.Profile:
|
||||
if self.Profile[3]=="C":
|
||||
@@ -589,7 +589,7 @@ class ProfileTaskPanel:
|
||||
_ProfileT(self.obj, self.Profile)
|
||||
else:
|
||||
print("Profile not supported")
|
||||
|
||||
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
FreeCADGui.ActiveDocument.resetEdit()
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user