assembly: disable auto resolve while grouping
This commit is contained in:
parent
cb3e5f4259
commit
279f5cd0bd
14
assembly.py
14
assembly.py
|
@ -4066,9 +4066,17 @@ class AsmPlainGroup(object):
|
||||||
group = [ o for o in info.Group.Group
|
group = [ o for o in info.Group.Group
|
||||||
if o not in info.Objects ]
|
if o not in info.Objects ]
|
||||||
group.insert(idx,obj)
|
group.insert(idx,obj)
|
||||||
editGroup(info.Group,group)
|
|
||||||
obj.Group = info.Objects
|
block = gui.AsmCmdManager.AutoRecompute
|
||||||
info.Parent.recompute(True)
|
if block:
|
||||||
|
gui.AsmCmdManager.AutoRecompute = False
|
||||||
|
try:
|
||||||
|
editGroup(info.Group,group)
|
||||||
|
obj.Group = info.Objects
|
||||||
|
info.Parent.recompute(True)
|
||||||
|
finally:
|
||||||
|
if block:
|
||||||
|
gui.AsmCmdManager.AutoRecompute = True
|
||||||
|
|
||||||
if undo:
|
if undo:
|
||||||
FreeCAD.closeActiveTransaction()
|
FreeCAD.closeActiveTransaction()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user