Arch: Fixed some bugs in IFC export

This commit is contained in:
Yorik van Havre
2014-05-12 19:52:25 -03:00
parent 066fbfda0a
commit 8d16e0e0a3
4 changed files with 14 additions and 9 deletions

View File

@@ -157,6 +157,13 @@ class _ViewProviderFrame(ArchComponent.ViewProviderComponent):
def getIcon(self):
import Arch_rc
return ":/icons/Arch_Frame_Tree.svg"
def claimChildren(self):
p = []
if hasattr(self,"Object"):
if self.Object.Profile:
p = [self.Object.Profile]
return ArchComponent.ViewProviderComponent.claimChildren(self)+p
if FreeCAD.GuiUp:
FreeCADGui.addCommand('Arch_Frame',_CommandFrame())