assembly: fix AsmWorkPlane.make()
This commit is contained in:
parent
06a73f83ef
commit
9f933de595
|
@ -3932,8 +3932,9 @@ class AsmWorkPlane(object):
|
||||||
BoundBox = bbox)
|
BoundBox = bbox)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def make(sels=None,name=None, tp=0, undo=True):
|
def make(info=None,name=None, tp=0, undo=True):
|
||||||
info = AsmWorkPlane.getSelection(sels)
|
if not info:
|
||||||
|
info = AsmWorkPlane.getSelection()
|
||||||
doc = info.PartGroup.Document
|
doc = info.PartGroup.Document
|
||||||
if undo:
|
if undo:
|
||||||
FreeCAD.setActiveTransaction('Assembly create workplane')
|
FreeCAD.setActiveTransaction('Assembly create workplane')
|
||||||
|
|
1
gui.py
1
gui.py
|
@ -639,7 +639,6 @@ class AsmCmdAddOrigin(AsmCmdCheckable):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def Activated(cls,checked):
|
def Activated(cls,checked):
|
||||||
logger.info('checked {}'.format(checked))
|
|
||||||
cls.setChecked(checked)
|
cls.setChecked(checked)
|
||||||
if checked:
|
if checked:
|
||||||
from . import assembly
|
from . import assembly
|
||||||
|
|
Loading…
Reference in New Issue
Block a user