prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.63k stars 1.92k forks source link

Adding custom G-Code leads to a sort of reset... #12809

Open FredM67 opened 3 months ago

FredM67 commented 3 months ago

Description of the bug

I open the attached project. Slice... and then add the following G-Code M104 S245 at layer 71. When clicking on "Ok", the project "resets", the custom G-Code is gone... Hard to explain what's going on !

Project file & How to reproduce

SmartTemperatureTower_Stand_3DJake_ASA_Black.zip

Checklist of files included above

Version of PrusaSlicer

Version 2.7.4+win64

Operating system

Windows 11 23H2 (OS Build 22635.3720)

Printer model

Snapmaker Artisan

FredM67 commented 3 months ago

Exact steps to reproduce with the attached file.

  1. Open PrusaSlicer
  2. Select 3D Editor View
  3. Open the project
  4. Click on Slice now (auto switch to Preview)
  5. Add Custom G-Code at layer 71 M104 S245
  6. Click "Ok The view is then reseted, losing the added G-Code.