Arch: Added pref options for window transparency and collada export scaling - fixes #1379

This commit is contained in:
Yorik van Havre
2014-04-16 17:21:21 -03:00
parent 569e6ce4a2
commit ce2f0b009b
5 changed files with 77 additions and 5 deletions

View File

@@ -53,6 +53,8 @@ def makeWindow(baseobj=None,width=None,height=None,parts=None,name=translate("Ar
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name)
_Window(obj)
_ViewProviderWindow(obj.ViewObject)
p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch")
obj.ViewObject.Transparency=p.GetInt("WindowTransparency",85)
if width:
obj.Width = width
if height: