Arch: Allow equipments to be non-solid

This commit is contained in:
Yorik van Havre 2016-08-18 12:20:45 -03:00
parent 13528b0aec
commit 717fe546f0
2 changed files with 5 additions and 3 deletions

View File

@ -661,17 +661,19 @@ class Component:
if not placement.isNull():
obj.Placement = placement
else:
FreeCAD.Console.PrintWarning(obj.Label + " " + translate("Arch","has no solid")+"\n")
if allownosolid:
obj.Shape = shape
if not placement.isNull():
obj.Placement = placement
else:
FreeCAD.Console.PrintWarning(obj.Label + " " + translate("Arch","has no solid")+"\n")
else:
FreeCAD.Console.PrintWarning(obj.Label + " " + translate("Arch","has an invalid shape")+"\n")
if allowinvalid:
obj.Shape = shape
if not placement.isNull():
obj.Placement = placement
else:
FreeCAD.Console.PrintWarning(obj.Label + " " + translate("Arch","has an invalid shape")+"\n")
else:
FreeCAD.Console.PrintWarning(obj.Label + " " + translate("Arch","has a null shape")+"\n")

View File

@ -280,7 +280,7 @@ class _Equipment(ArchComponent.Component):
base = base.removeSplitteR()
if base:
base = self.processSubShapes(obj,base,pl)
self.applyShape(obj,base,pl)
self.applyShape(obj,base,pl,allowinvalid=False,allownosolid=True)
class _ViewProviderEquipment(ArchComponent.ViewProviderComponent):