assembly: fix AsmWorkPlane.make()

This commit is contained in:
Zheng, Lei 2019-05-03 11:55:39 +08:00
parent 06a73f83ef
commit 9f933de595
2 changed files with 3 additions and 3 deletions

View File

@ -3932,8 +3932,9 @@ class AsmWorkPlane(object):
BoundBox = bbox)
@staticmethod
def make(sels=None,name=None, tp=0, undo=True):
info = AsmWorkPlane.getSelection(sels)
def make(info=None,name=None, tp=0, undo=True):
if not info:
info = AsmWorkPlane.getSelection()
doc = info.PartGroup.Document
if undo:
FreeCAD.setActiveTransaction('Assembly create workplane')

1
gui.py
View File

@ -639,7 +639,6 @@ class AsmCmdAddOrigin(AsmCmdCheckable):
@classmethod
def Activated(cls,checked):
logger.info('checked {}'.format(checked))
cls.setChecked(checked)
if checked:
from . import assembly