mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 22:55:53 +08:00
Merge branch '2.1' of https://github.com/Ultimaker/Cura into 2.1
This commit is contained in:
commit
476ab9226d
@ -259,7 +259,7 @@ class BuildVolume(SceneNode):
|
|||||||
skirt_line_count = profile.getSettingValue("skirt_line_count")
|
skirt_line_count = profile.getSettingValue("skirt_line_count")
|
||||||
skirt_size = skirt_distance + (skirt_line_count * profile.getSettingValue("skirt_line_width"))
|
skirt_size = skirt_distance + (skirt_line_count * profile.getSettingValue("skirt_line_width"))
|
||||||
elif adhesion_type == "brim":
|
elif adhesion_type == "brim":
|
||||||
skirt_size = profile.getSettingValue("brim_width")
|
skirt_size = profile.getSettingValue("brim_line_count") * profile.getSettingValue("skirt_line_width")
|
||||||
elif adhesion_type == "raft":
|
elif adhesion_type == "raft":
|
||||||
skirt_size = profile.getSettingValue("raft_margin")
|
skirt_size = profile.getSettingValue("raft_margin")
|
||||||
|
|
||||||
|
@ -391,6 +391,10 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
|||||||
def homeHead(self):
|
def homeHead(self):
|
||||||
self._sendCommand("G28")
|
self._sendCommand("G28")
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
|
def homeBed(self):
|
||||||
|
self._sendCommand("G28 Z")
|
||||||
|
|
||||||
## Directly send the command, withouth checking connection state (eg; printing).
|
## Directly send the command, withouth checking connection state (eg; printing).
|
||||||
# \param cmd string with g-code
|
# \param cmd string with g-code
|
||||||
def _sendCommand(self, cmd):
|
def _sendCommand(self, cmd):
|
||||||
|
@ -21,6 +21,8 @@ Item
|
|||||||
property variant printer_connection: UM.USBPrinterManager.connectedPrinterList.getItem(0).printer
|
property variant printer_connection: UM.USBPrinterManager.connectedPrinterList.getItem(0).printer
|
||||||
Component.onCompleted:
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
|
printer_connection.homeBed()
|
||||||
|
printer_connection.moveHeadRelative(0, 0, 3)
|
||||||
printer_connection.homeHead()
|
printer_connection.homeHead()
|
||||||
}
|
}
|
||||||
UM.I18nCatalog { id: catalog; name:"cura"}
|
UM.I18nCatalog { id: catalog; name:"cura"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user