Arch: lint bad indentation, superfluous formatting (#9310)

This commit is contained in:
luzpaz
2023-04-19 03:40:16 -04:00
committed by GitHub
parent c55cae44b9
commit fdca2d49f7
16 changed files with 84 additions and 89 deletions

View File

@@ -610,7 +610,7 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
baseobj.Dir = ex[1]
if FreeCAD.GuiUp:
baseface.ViewObject.hide()
if (not baseobj):
if not baseobj:
baseobj = doc.addObject("Part::Feature",name+"_body")
baseobj.Shape = shape
else:
@@ -921,7 +921,7 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
# of the (twodimensional) direction vector for TrueNorth shall be greater than zero.
(x, y) = modelRC.TrueNorth.DirectionRatios[:2]
obj.Declination = ((math.degrees(math.atan2(y,x))-90+180) % 360)-180
if (FreeCAD.GuiUp):
if FreeCAD.GuiUp:
obj.ViewObject.CompassRotation.Value = obj.Declination
try: