From 70ff9afa9da851b7ef30d2e48e2b166614389080 Mon Sep 17 00:00:00 2001 From: Amritpal Singh Date: Mon, 3 May 2021 23:06:05 +0530 Subject: [PATCH] Arch: allow Rebar OffsetStart and OffsetEnd in negative also --- src/Mod/Arch/ArchRebar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index 39bd4b6b6c..1d9804087e 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -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: