Fix editing of OffsetStart of rebar object
Problem: Unable to set OffsetStart value to greater than (size of structure object along direction of expansion of rebars)/2 for rebar object Solution: Drop check if(OffsetStart + OffsetEnd > size)
This commit is contained in:
committed by
Yorik van Havre
parent
544e85ff3f
commit
c331ce29f1
@@ -355,9 +355,9 @@ class _Rebar(ArchComponent.Component):
|
||||
if obj.CustomSpacing:
|
||||
spacinglist = strprocessOfCustomSpacing(obj.CustomSpacing)
|
||||
influenceArea = sum(spacinglist) - spacinglist[0] / 2 - spacinglist[-1] / 2
|
||||
if obj.Amount != 1:
|
||||
if (obj.OffsetStart.Value + obj.OffsetEnd.Value) > size:
|
||||
return
|
||||
# Drop this check to solve issue as discussed here: https://github.com/FreeCAD/FreeCAD/pull/2550
|
||||
# if (obj.OffsetStart.Value + obj.OffsetEnd.Value) > size:
|
||||
# return
|
||||
# all tests ok!
|
||||
if hasattr(obj, "Length"):
|
||||
length = getLengthOfRebar(obj)
|
||||
|
||||
Reference in New Issue
Block a user