mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:09:01 +08:00
Merge branch 'master' of https://github.com/Ultimaker/Cura
This commit is contained in:
commit
f39b48459e
@ -90,12 +90,20 @@ class GCodeWriter(MeshWriter):
|
|||||||
prefix_length = len(prefix)
|
prefix_length = len(prefix)
|
||||||
|
|
||||||
container_with_profile = stack.findContainer({"type": "quality"})
|
container_with_profile = stack.findContainer({"type": "quality"})
|
||||||
|
if not container_with_profile:
|
||||||
|
Logger.log("e", "No valid quality profile found, not writing settings to GCode!")
|
||||||
|
return ""
|
||||||
|
|
||||||
flat_global_container = self._createFlattenedContainerInstance(stack.getTop(),container_with_profile)
|
flat_global_container = self._createFlattenedContainerInstance(stack.getTop(),container_with_profile)
|
||||||
serialized = flat_global_container.serialize()
|
serialized = flat_global_container.serialize()
|
||||||
data = {"global_quality": serialized}
|
data = {"global_quality": serialized}
|
||||||
|
|
||||||
for extruder in ExtruderManager.getInstance().getMachineExtruders(stack.getId()):
|
for extruder in ExtruderManager.getInstance().getMachineExtruders(stack.getId()):
|
||||||
extruder_quality = extruder.findContainer({"type": "quality"})
|
extruder_quality = extruder.findContainer({"type": "quality"})
|
||||||
|
if not extruder_quality:
|
||||||
|
Logger.log("w", "No extruder quality profile found, not writing quality for extruder %s to file!", extruder.getId())
|
||||||
|
continue
|
||||||
|
|
||||||
flat_extruder_quality = self._createFlattenedContainerInstance(extruder.getTop(), extruder_quality)
|
flat_extruder_quality = self._createFlattenedContainerInstance(extruder.getTop(), extruder_quality)
|
||||||
|
|
||||||
extruder_serialized = flat_extruder_quality.serialize()
|
extruder_serialized = flat_extruder_quality.serialize()
|
||||||
|
@ -125,7 +125,7 @@ ScrollView
|
|||||||
{
|
{
|
||||||
id: provider
|
id: provider
|
||||||
|
|
||||||
containerStackId: delegate.stackId
|
containerStackId: Cura.MachineManager.activeMachineId
|
||||||
key: model.key ? model.key : ""
|
key: model.key ? model.key : ""
|
||||||
watchedProperties: [ "value", "enabled", "state", "validationState", "settable_per_extruder" ]
|
watchedProperties: [ "value", "enabled", "state", "validationState", "settable_per_extruder" ]
|
||||||
storeIndex: 0
|
storeIndex: 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user