mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Changes needed wrt how we build Arcus with Sip 6.
part of CURA-7924
This commit is contained in:
parent
99449dbc34
commit
08c49c6c13
2 changed files with 20 additions and 20 deletions
|
@ -7,7 +7,7 @@ from enum import IntEnum
|
|||
import time
|
||||
from typing import Any, cast, Dict, List, Optional, Set
|
||||
import re
|
||||
import Arcus #For typing.
|
||||
import pyArcus #For typing.
|
||||
from PyQt6.QtCore import QCoreApplication
|
||||
|
||||
from UM.Job import Job
|
||||
|
@ -90,17 +90,17 @@ class GcodeStartEndFormatter(Formatter):
|
|||
class StartSliceJob(Job):
|
||||
"""Job class that builds up the message of scene data to send to CuraEngine."""
|
||||
|
||||
def __init__(self, slice_message: Arcus.PythonMessage) -> None:
|
||||
def __init__(self, slice_message: pyArcus.PythonMessage) -> None:
|
||||
super().__init__()
|
||||
|
||||
self._scene = CuraApplication.getInstance().getController().getScene() #type: Scene
|
||||
self._slice_message = slice_message #type: Arcus.PythonMessage
|
||||
self._slice_message = slice_message #type: pyArcus.PythonMessage
|
||||
self._is_cancelled = False #type: bool
|
||||
self._build_plate_number = None #type: Optional[int]
|
||||
|
||||
self._all_extruders_settings = None #type: Optional[Dict[str, Any]] # cache for all setting values from all stacks (global & extruder) for the current machine
|
||||
|
||||
def getSliceMessage(self) -> Arcus.PythonMessage:
|
||||
def getSliceMessage(self) -> pyArcus.PythonMessage:
|
||||
return self._slice_message
|
||||
|
||||
def setBuildPlate(self, build_plate_number: int) -> None:
|
||||
|
@ -502,7 +502,7 @@ class StartSliceJob(Job):
|
|||
setting_extruder.extruder = extruder_position
|
||||
Job.yieldThread()
|
||||
|
||||
def _handlePerObjectSettings(self, node: CuraSceneNode, message: Arcus.PythonMessage):
|
||||
def _handlePerObjectSettings(self, node: CuraSceneNode, message: pyArcus.PythonMessage):
|
||||
"""Check if a node has per object settings and ensure that they are set correctly in the message
|
||||
|
||||
:param node: Node to check.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue