Draft: Keep using the already set working plane, if existing

This commit is contained in:
Yorik van Havre
2019-05-03 10:25:01 -03:00
committed by Yorik van Havre
parent fad8fa4071
commit 8d237da7cb

View File

@@ -54,9 +54,10 @@ import sys, FreeCAD, os, Part, math, re, string, Mesh, Draft, DraftVecUtils, Dra
from Draft import _Dimension, _ViewProviderDimension
from FreeCAD import Vector
# sets the default working plane
plane = WorkingPlane.plane()
FreeCAD.DraftWorkingPlane = plane
# sets the default working plane if Draft hasn't been started yet
if not hasattr(FreeCAD,"DraftWorkingPlane"):
plane = WorkingPlane.plane()
FreeCAD.DraftWorkingPlane = plane
gui = FreeCAD.GuiUp
draftui = None