File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
python/plugins/processing/modeler Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def todict(self):
114
114
@property
115
115
def algorithm (self ):
116
116
if self ._algInstance is None :
117
- self ._algInstance = QgsApplication .processingRegistry ().algorithmById (self .consoleName ). getCopy ()
117
+ self ._algInstance = QgsApplication .processingRegistry ().algorithmById (self .consoleName )
118
118
return self ._algInstance
119
119
120
120
def setName (self , model ):
@@ -226,7 +226,7 @@ class ModelerAlgorithm(GeoAlgorithm):
226
226
CANVAS_SIZE = 4000
227
227
228
228
def getCopy (self ):
229
- newone = self
229
+ newone = ModelerAlgorithm ()
230
230
231
231
newone .algs = {}
232
232
for algname , alg in self .algs .items ():
@@ -612,14 +612,6 @@ def _import(name):
612
612
clazz = getattr (module , className )
613
613
instance = clazz ()
614
614
for k , v in list (values .items ()):
615
- # upgrade old model files
616
- if k == 'group' :
617
- k = '_group'
618
- elif k == 'name' :
619
- instance .__dict__ ['_name' ] = v
620
- k = 'modeler_name'
621
- if not issubclass (clazz , GeoAlgorithm ):
622
- instance .__dict__ ['name' ] = v
623
615
instance .__dict__ [k ] = v
624
616
return instance
625
617
except KeyError :
You can’t perform that action at this time.
0 commit comments