Skip to content

Commit

Permalink
Arch: Fixed placement of precest structures
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Dec 11, 2016
1 parent 223dd70 commit 207432c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Arch/ArchStructure.py
Expand Up @@ -201,6 +201,8 @@ def getPoint(self,point=None,obj=None):
args["Width"] = self.Width
args["Height"] = self.Height
argstring = ""
# fix for precast placement, since their (0,0) point is the lower left corner
point = FreeCAD.Vector(point.x-self.Length/2,point.y-self.Width/2,point.z)
for pair in args.items():
argstring += pair[0].lower() + "="
if isinstance(pair[1],str):
Expand Down

0 comments on commit 207432c

Please sign in to comment.