From c6f09bd864640ca7f9e6840e5e439db8ebf983c5 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Sat, 25 Nov 2023 22:19:46 +0000 Subject: [PATCH] [Gears] Remove Deepcopy dependency --- freecad/gears/features.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index bb55a33..357c97a 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -18,7 +18,6 @@ from __future__ import division import os -import copy import numpy as np import math @@ -620,7 +619,7 @@ class InvoluteGearRack(BaseGear): teeth = [tooth] for i in range(obj.teeth - 1): - tooth = copy.deepcopy(tooth) + tooth = tooth.copy() tooth.translate(App.Vector(0, np.pi * m, 0)) teeth.append(tooth) @@ -780,7 +779,7 @@ class CycloidGearRack(BaseGear): teeth = [tooth] for i in range(obj.teeth - 1): - tooth = copy.deepcopy(tooth) + tooth = tooth.copy() tooth.translate(App.Vector(0, np.pi * m, 0)) teeth.append(tooth)