Draft: migrate PointList property to PointObject in PointArray

Use the `onDocumentRestored` method to check for the old
property.

Also modify the position of the base object in the draft test
script.
This commit is contained in:
vocx-fc
2020-05-21 02:46:13 -05:00
committed by Yorik van Havre
parent 96736db93a
commit 22c9f9a762
2 changed files with 21 additions and 8 deletions

View File

@@ -476,7 +476,7 @@ def _create_objects(doc=None,
_msg(16 * "-")
_msg("Path array")
poly_h = Draft.make_polygon(3, 250)
poly_h.Placement.Base = Vector(10500, 3000, 0)
poly_h.Placement.Base = Vector(10000, 3000, 0)
if App.GuiUp:
poly_h.ViewObject.Visibility = False
@@ -494,7 +494,7 @@ def _create_objects(doc=None,
_msg(16 * "-")
_msg("Path link array")
poly_h_2 = Draft.make_polygon(4, 200)
poly_h_2.Placement.Base = Vector(10500, 5000, 0)
poly_h_2.Placement.Base = Vector(10000, 5000, 0)
if App.GuiUp:
poly_h_2.ViewObject.Visibility = False
@@ -512,6 +512,7 @@ def _create_objects(doc=None,
_msg(16 * "-")
_msg("Point array")
poly_h = Draft.make_polygon(3, 250)
poly_h.Placement.Base = Vector(12500, 2500, 0)
point_1 = Draft.make_point(13000, 3000, 0)
point_2 = Draft.make_point(13000, 3500, 0)