assembly: disable auto resolve while grouping
This commit is contained in:
parent
cb3e5f4259
commit
279f5cd0bd
|
@ -4066,9 +4066,17 @@ class AsmPlainGroup(object):
|
|||
group = [ o for o in info.Group.Group
|
||||
if o not in info.Objects ]
|
||||
group.insert(idx,obj)
|
||||
|
||||
block = gui.AsmCmdManager.AutoRecompute
|
||||
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:
|
||||
FreeCAD.closeActiveTransaction()
|
||||
|
|
Loading…
Reference in New Issue
Block a user