We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 421251a commit f7c639cCopy full SHA for f7c639c
python/plugins/processing/modeler/ModelerAlgorithm.py
@@ -210,7 +210,11 @@ class ModelerAlgorithm(GeoAlgorithm):
210
def getCopy(self):
211
newone = ModelerAlgorithm()
212
newone.provider = self.provider
213
- newone.algs = copy.deepcopy(self.algs)
+
214
+ newone.algs = {}
215
+ for algname, alg in self.algs.iteritems():
216
+ newone.algs[algname] = Algorithm()
217
+ newone.algs[algname].__dict__.update(copy.deepcopy(alg.todict()))
218
newone.inputs = copy.deepcopy(self.inputs)
219
newone.defineCharacteristics()
220
newone.name = self.name
0 commit comments