Arch: Fixed bug in Section Plane + TechDraw view when the section is empty
This commit is contained in:
parent
2a67c7f0ae
commit
67fdbfdbeb
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user