mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
CURA-4400 fix for change in fdmprinter: move -1 from default_value to value
This commit is contained in:
parent
aa3cd8ba9d
commit
e0e2d3362b
1 changed files with 2 additions and 2 deletions
|
@ -278,12 +278,12 @@ class StartSliceJob(Job):
|
||||||
# \return A dictionary of replacement tokens to the values they should be
|
# \return A dictionary of replacement tokens to the values they should be
|
||||||
# replaced with.
|
# replaced with.
|
||||||
def _buildReplacementTokens(self, stack) -> dict:
|
def _buildReplacementTokens(self, stack) -> dict:
|
||||||
default_extruder_position = Application.getInstance().getMachineManager().defaultExtruderPosition
|
default_extruder_position = int(Application.getInstance().getMachineManager().defaultExtruderPosition)
|
||||||
result = {}
|
result = {}
|
||||||
for key in stack.getAllKeys():
|
for key in stack.getAllKeys():
|
||||||
setting_type = stack.getProperty(key, "type")
|
setting_type = stack.getProperty(key, "type")
|
||||||
value = stack.getProperty(key, "value")
|
value = stack.getProperty(key, "value")
|
||||||
if setting_type == "extruder" and value == "-1":
|
if setting_type == "extruder" and value == -1:
|
||||||
# replace with the default value
|
# replace with the default value
|
||||||
value = default_extruder_position
|
value = default_extruder_position
|
||||||
result[key] = value
|
result[key] = value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue