Arch: fixed window movements - fixes #1597

This commit is contained in:
Yorik van Havre
2014-09-17 19:39:54 -03:00
parent f76f91bd84
commit 9b52c19fe3
3 changed files with 28 additions and 19 deletions

View File

@@ -476,17 +476,6 @@ class _Wall(ArchComponent.Component):
def onChanged(self,obj,prop):
self.hideSubobjects(obj,prop)
# propagate movements to children windows
if prop == "Placement":
if obj.Shape:
if not obj.Shape.isNull():
vo = obj.Shape.Placement.Base
vn = obj.Placement.Base
if not DraftVecUtils.equals(vo,vn):
delta = vn.sub(vo)
for o in obj.OutList:
if (Draft.getType(o) == "Window") or Draft.isClone(o,"Window"):
o.Placement.move(delta)
ArchComponent.Component.onChanged(self,obj,prop)

View File

@@ -671,8 +671,6 @@ class _Window(ArchComponent.Component):
shapes.append(shape)
if shapes:
base = Part.makeCompound(shapes)
if not DraftGeomUtils.isNull(pl):
base.Placement = pl
elif not obj.WindowParts:
if not obj.Base.Shape.isNull():
base = obj.Base.Shape.copy()