Arch: allow Rebar OffsetStart and OffsetEnd in negative also

This commit is contained in:
Amritpal Singh
2021-05-03 23:06:05 +05:30
parent b69ef38c7f
commit 70ff9afa9d

View File

@@ -171,9 +171,9 @@ class _Rebar(ArchComponent.Component):
if not "Diameter" in pl:
obj.addProperty("App::PropertyLength","Diameter","Rebar",QT_TRANSLATE_NOOP("App::Property","The diameter of the bar"))
if not "OffsetStart" in pl:
obj.addProperty("App::PropertyLength","OffsetStart","Rebar",QT_TRANSLATE_NOOP("App::Property","The distance between the border of the beam and the first bar (concrete cover)."))
obj.addProperty("App::PropertyDistance","OffsetStart","Rebar",QT_TRANSLATE_NOOP("App::Property","The distance between the border of the beam and the first bar (concrete cover)."))
if not "OffsetEnd" in pl:
obj.addProperty("App::PropertyLength","OffsetEnd","Rebar",QT_TRANSLATE_NOOP("App::Property","The distance between the border of the beam and the last bar (concrete cover)."))
obj.addProperty("App::PropertyDistance","OffsetEnd","Rebar",QT_TRANSLATE_NOOP("App::Property","The distance between the border of the beam and the last bar (concrete cover)."))
if not "Amount" in pl:
obj.addProperty("App::PropertyInteger","Amount","Rebar",QT_TRANSLATE_NOOP("App::Property","The amount of bars"))
if not "Spacing" in pl: