supermerill / SuperSlicer

G-code generator for 3D printers (Prusa, Voron, Creality, etc.)
4.13k stars 520 forks source link

Doubled Object Labels in RRF #3906

Open WarriorMe opened 1 year ago

WarriorMe commented 1 year ago

What happened?

When using the RepRapFirmware flavor and enabling "Label Objects", both comment-format labels and M486 labels are generated:

; printing object 1x1 V Block.stl id:0 copy:2
M486 S2

RepRap Firmware reads both of these labels, so each object is created twice in the firmware's object model.

If i want to, for example, print 3 objects, 6 objects would be created in the firmware object model.

Project file & How to reproduce

Set GCode flavor to "RepRapFirmware" and enable "Label Objects".

Duplicate objects can now be found in the firmware's object model browser. They also show up in the "Gcode Viewer" Plugin.

Version

2.4.58.5 & 2.5.59.2

Operating system

windows 10

Printer model

No response

supermerill commented 11 months ago

That's intended, so if a software can't read the M486, there is no problem. That's weird the firware can read both, even more that it can't merge them, as switching from objet 2 to 2 is weird...

If i removed one, i may break some software... Imo me, the best way to solve that is in the RepRap Firmware

In the meantime, you can add a gcode substitution: click on Add Find M486 Replace with ; switch to object