Arch: Bugfix in wall object
This commit is contained in:
parent
a4b593ddd3
commit
01681d66ec
|
@ -382,10 +382,14 @@ class _Wall(ArchComponent.Component):
|
|||
else:
|
||||
FreeCAD.Console.PrintError(str(translate("Arch","Error: Invalid base object")))
|
||||
|
||||
if base:
|
||||
for app in obj.Additions:
|
||||
if hasattr(app,"Shape"):
|
||||
if app.Shape:
|
||||
if not app.Shape.isNull():
|
||||
base = base.fuse(app.Shape)
|
||||
app.ViewObject.hide() #to be removed
|
||||
|
||||
for hole in obj.Subtractions:
|
||||
if Draft.getType(hole) == "Window":
|
||||
# window
|
||||
|
@ -399,11 +403,11 @@ class _Wall(ArchComponent.Component):
|
|||
if f:
|
||||
base = base.cut(f)
|
||||
elif hasattr(hole,"Shape"):
|
||||
if hole.Shape:
|
||||
if not hole.Shape.isNull():
|
||||
base = base.cut(hole.Shape)
|
||||
hole.ViewObject.hide() # to be removed
|
||||
|
||||
if base:
|
||||
if not base.isNull():
|
||||
try:
|
||||
base = base.removeSplitter()
|
||||
|
|
Loading…
Reference in New Issue
Block a user