mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Send over plugin name and version
Might be needed during the handshake between engine and plugin Contributes to CURA-10619
This commit is contained in:
parent
0667230055
commit
f634a5bd44
3 changed files with 8 additions and 3 deletions
|
@ -6,9 +6,10 @@ from typing import Optional, List
|
|||
from UM.Logger import Logger
|
||||
from UM.Message import Message
|
||||
from UM.Settings.AdditionalSettingDefinitionAppender import AdditionalSettingDefinitionsAppender
|
||||
from UM.PluginObject import PluginObject
|
||||
|
||||
|
||||
class BackendPlugin(AdditionalSettingDefinitionsAppender):
|
||||
class BackendPlugin(AdditionalSettingDefinitionsAppender, PluginObject):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self.__port: int = 0
|
||||
|
|
|
@ -19,8 +19,10 @@ enum SlotID {
|
|||
message EnginePlugin
|
||||
{
|
||||
SlotID id = 1;
|
||||
optional string address = 2;
|
||||
optional uint32 port = 3;
|
||||
string address = 2;
|
||||
uint32 port = 3;
|
||||
string plugin_name = 4;
|
||||
string plugin_version = 5;
|
||||
}
|
||||
|
||||
message Slice
|
||||
|
|
|
@ -314,6 +314,8 @@ class StartSliceJob(Job):
|
|||
plugin_message.id = slot
|
||||
plugin_message.address = plugin.getAddress()
|
||||
plugin_message.port = plugin.getPort()
|
||||
plugin_message.plugin_name = plugin.getPluginId()
|
||||
plugin_message.plugin_version = plugin.getVersion()
|
||||
|
||||
for group in filtered_object_groups:
|
||||
group_message = self._slice_message.addRepeatedMessage("object_lists")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue