Merge pull request #19391 from Ultimaker/CURA-10914_allow_multiple_plugins_on_same_slot

CURA-10914 Order backend plugins by name
This commit is contained in:
HellAholic 2024-07-24 11:23:34 +02:00 committed by GitHub
commit b48d3a773b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,12 @@ class StartSliceJob(Job):
for extruder_stack in global_stack.extruderList: for extruder_stack in global_stack.extruderList:
self._buildExtruderMessage(extruder_stack) self._buildExtruderMessage(extruder_stack)
for plugin in CuraApplication.getInstance().getBackendPlugins(): backend_plugins = CuraApplication.getInstance().getBackendPlugins()
# Sort backend plugins by name. Not a very good strategy, but at least it is repeatable. This will be improved later.
backend_plugins = sorted(backend_plugins, key=lambda backend_plugin: backend_plugin.getId())
for plugin in backend_plugins:
if not plugin.usePlugin(): if not plugin.usePlugin():
continue continue
for slot in plugin.getSupportedSlots(): for slot in plugin.getSupportedSlots():