mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-23 00:04:25 -04:00
For same reason as we do in Processing registry: (from the comments included in this commit) " While it seems like /Factory/ would be the correct annotations here, that's not the case. As per Phil Thomson's advice on https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html: " /Factory/ is used when the instance returned is guaranteed to be new to Python. In this case it isn't because it has already been seen when being returned by QgsProcessingAlgorithm::createInstance() (However for a different sub-class implemented in C++ then it would be the first time it was seen by Python so the /Factory/ on create() would be correct.) You might try using /TransferBack/ on create() instead - that might be the best compromise. "