mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Update PostProcessingPlugin.py
Add all the active Post Processor names to the gcode.
This commit is contained in:
parent
7f62744e21
commit
398556707f
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ class PostProcessingPlugin(QObject, Extension):
|
|||
Logger.logException("e", "Exception in post-processing script.")
|
||||
if len(self._script_list): # Add comment to g-code if any changes were made.
|
||||
gcode_list[0] += ";POSTPROCESSED\n"
|
||||
# Add all the active post processor names to data[0]
|
||||
pp_name_list = Application.getInstance().getGlobalContainerStack().getMetaDataEntry("post_processing_scripts")
|
||||
for pp_name in pp_name_list.split("\n"):
|
||||
pp_name = pp_name.split("]")
|
||||
gcode_list[0] += "; " + str(pp_name[0]) + "]\n"
|
||||
gcode_dict[active_build_plate_id] = gcode_list
|
||||
setattr(scene, "gcode_dict", gcode_dict)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue