Skip to content

Fix Cura 5.11 export: accept mime_type kwarg in writer#94

Open
obertini78 wants to merge 1 commit intoSnapmaker:mainfrom
obertini78:fix/cura-5-11-mime-type
Open

Fix Cura 5.11 export: accept mime_type kwarg in writer#94
obertini78 wants to merge 1 commit intoSnapmaker:mainfrom
obertini78:fix/cura-5-11-mime-type

Conversation

@obertini78
Copy link

Fix suggested by ChatGPT 5.2. Works fine on my setup with J1.

Cura 5.11+ passes an extra keyword argument mime_type into MeshWriter/FileWriter write().
SnapmakerGCodeWriter.write() does not accept it, causing a TypeError when exporting/saving G-code.

This change makes write() accept mime_type (and **kwargs) for forward compatibility.
No behavioral changes otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant