Arch: Fixed position of BuildingPart label on start

This commit is contained in:
Yorik van Havre
2018-12-02 18:49:07 -02:00
parent aedc8cb054
commit 7f2fc7698c

View File

@@ -460,6 +460,7 @@ class ViewProviderBuildingPart:
vobj.addProperty("App::PropertyString","OverrideUnit","BuildingPart",QT_TRANSLATE_NOOP("App::Property","An optional unit to express levels"))
if not "DisplayOffset" in pl:
vobj.addProperty("App::PropertyPlacement","DisplayOffset","BuildingPart",QT_TRANSLATE_NOOP("App::Property","A transformation to apply to the level mark"))
vobj.DisplayOffset = FreeCAD.Placement(FreeCAD.Vector(0,0,0),FreeCAD.Rotation(FreeCAD.Vector(1,0,0),90))
if not "ShowLevel" in pl:
vobj.addProperty("App::PropertyBool","ShowLevel","BuildingPart",QT_TRANSLATE_NOOP("App::Property","If true, show the level"))
vobj.ShowLevel = True