algo fixed
This commit is contained in:
parent
f0613e350a
commit
bcbf65811d
|
|
@ -77,11 +77,12 @@ class WindowDialog():
|
|||
__obj__.insert(0, __O__)
|
||||
maxY = boundingBox.YLength if boundingBox.YLength > maxY else maxY
|
||||
__obj__[0].Placement=App.Placement(App.Vector(0,0,0), App.Rotation(App.Vector(1,0,0),0), App.Vector(0,0,0))
|
||||
|
||||
if currentX == 0.0:
|
||||
__obj__[0].Placement.Base = FreeCAD.Vector(currentX, currentY, 0.0)
|
||||
__obj__[0].Placement.Base = FreeCAD.Vector(-boundingBox.XMin + currentX, -boundingBox.YMin + currentY, 0.0)
|
||||
currentX += boundingBox.XLength
|
||||
else:
|
||||
__obj__[0].Placement.Base = FreeCAD.Vector(currentX + spacing, currentY, 0.0)
|
||||
__obj__[0].Placement.Base = FreeCAD.Vector(-boundingBox.XMin + currentX + spacing, -boundingBox.YMin + currentY, 0.0)
|
||||
currentX += boundingBox.XLength + spacing
|
||||
|
||||
copy_sketchList.pop(index)
|
||||
|
|
|
|||
Loading…
Reference in a new issue