Arch: Fixed bug in Section Plane + TechDraw view when the section is empty

This commit is contained in:
Yorik van Havre 2017-01-19 17:54:58 -02:00
parent 2a67c7f0ae
commit 67fdbfdbeb

View File

@ -137,7 +137,7 @@ def getSVG(section,allOn=False,renderMode="Wireframe",showHidden=False,showFill=
If showFill is True, the cut areas get filled with a pattern""" If showFill is True, the cut areas get filled with a pattern"""
if not section.Objects: if not section.Objects:
return return ""
import Part,DraftGeomUtils import Part,DraftGeomUtils
p = FreeCAD.Placement(section.Placement) p = FreeCAD.Placement(section.Placement)
direction = p.Rotation.multVec(FreeCAD.Vector(0,0,1)) direction = p.Rotation.multVec(FreeCAD.Vector(0,0,1))