Arch: Fixed bug introduced by 5e08669

This commit is contained in:
Yorik van Havre
2016-09-10 18:54:40 -03:00
parent dc4e3bf833
commit 75e359f9ca
2 changed files with 8 additions and 13 deletions

View File

@@ -77,7 +77,6 @@ def addToComponent(compobject,addobject,mod=None):
l.append(addobject)
setattr(compobject,mod,l)
if mod != "Objects":
ArchCommands.setAsSubcomponent(addobject)
addobject.ViewObject.hide()
else:
for a in attribs[:3]:
@@ -118,7 +117,6 @@ def removeFromComponent(compobject,subobject):
compobject.Subtractions = l
if (Draft.getType(subobject) != "Window") and (not Draft.isClone(subobject,"Window",True)):
ArchCommands.setAsSubcomponent(subobject)
subobject.ViewObject.hide()
class SelectionTaskPanel: