From 44bbffe48ab9731fdbc2ebcffb049f83a0b1b2d6 Mon Sep 17 00:00:00 2001 From: Pekka Roivainen Date: Sat, 13 May 2017 09:02:02 +0300 Subject: [PATCH] Path: Add ToolController property to PathArray Object --- src/Mod/Path/PathScripts/PathArray.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathArray.py b/src/Mod/Path/PathScripts/PathArray.py index 4819da34f6..f74051b74b 100644 --- a/src/Mod/Path/PathScripts/PathArray.py +++ b/src/Mod/Path/PathScripts/PathArray.py @@ -42,6 +42,9 @@ class ObjectArray: "Path", "The spacing between the array copies") obj.addProperty("App::PropertyInteger", "Copies", "Path", "The number of copies") + + obj.addProperty("App::PropertyLink", "ToolController", "Path", QtCore.QT_TRANSLATE_NOOP("App::Property", "The tool controller that will be used to calculate the path")) + obj.Proxy = self def __getstate__(self): @@ -56,6 +59,10 @@ class ObjectArray: return if not obj.Base.Path: return + if not obj.Base.ToolController: + return + + obj.ToolController = obj.Base.ToolController # build copies basepath = obj.Base.Path