# Issue #13368 — SuperSlicer 3mf imports lose object names ("Object_N") Status: **reproduced** on main (commit f939e2b1e) with the Release binary at $ORCA_BIN, using the MCP harness under Xvfb. ## What the bug is `Model::read_from_archive` (src/libslic3r/Model.cpp:542) asks `PrusaFileParser::check_3mf_from_prusa` whether a .3mf is slic3r-family. That check only sets `m_from_prusa` when the `` text contains the literal substring `"PrusaSlicer"` — src/libslic3r/Format/3mf.cpp:368: ```cpp if (!str.empty() && str.find("PrusaSlicer") != std::string::npos) m_from_prusa = true; ``` SuperSlicer writes `Application = "SuperSlicer-2.6.59.0"`, so the test fails and the file is routed to `load_bbs_3mf` instead of `load_3mf`. SuperSlicer stores object names only in the sidecar configs (`Metadata/Slic3r_PE_model.config` etc., as ``); it does NOT write a `name` attribute on `` in `3D/3dmodel.model`. The BBS reader only uses the `name` attribute (bbs_3mf.cpp:5791) and falls back to: ```cpp // src/libslic3r/Format/bbs_3mf.cpp:2325 model_object->name = "Object_"+std::to_string(object.second+1); ``` Hence "Object_1, Object_2, ...". ## Repro files - `make_superslicer_3mf.py` — generates a minimal but valid SuperSlicer-style 3MF (two objects "LDO_Skirt_Left"/"LDO_Skirt_Right", no `name` attributes in the model xml, names only in Metadata/Slic3r_model.config, Slic3r_PE_model.config and SuperSlicer_model.config). Usage: `python3 make_superslicer_3mf.py OUT.3mf ["Application string"]` - `superslicer_style.3mf` — Application = `SuperSlicer-2.6.59.0` (the bug case) - `prusa_control.3mf` — byte-identical except Application = `PrusaSlicer-2.6.1` (the control that proves it is only the substring test at play) Note: the .3mf files from the previous session were invalid XML (stray `` wrapper) and failed to load at all; they have been regenerated and validated. ## Steps (all from $WT) ``` orca-mcp launch --bin $ORCA_BIN --xvfb orca-mcp call project_open "{\"path\":\"$PWD/repro/superslicer_style.3mf\"}" --wait # -> {"names": ["Object_1", "Object_2"], ...} <-- BUG orca-mcp call object_list # names are Object_1 / Object_2 orca-mcp screenshot repro/ss_superlicer_loaded.png --target main orca-mcp call project_open "{\"path\":\"$PWD/repro/prusa_control.3mf\"}" orca-mcp call dialog_answer '{"button":"OK"}' # "The 3MF is not supported by OrcaSlicer, loading geometry data only." orca-mcp call object_list # names are LDO_Skirt_Left / LDO_Skirt_Right <-- correct orca-mcp screenshot repro/ss_prusa_control_loaded.png --target main orca-mcp stop ``` ## Observed - SuperSlicer-signature file: object list shows **Object_1, Object_2** (ss_superlicer_loaded.png). - Identical file with "PrusaSlicer" signature: object list shows **LDO_Skirt_Left, LDO_Skirt_Right** (ss_prusa_control_loaded.png), after a "The 3MF is not supported by OrcaSlicer, loading geometry data only." dialog — i.e. even the Prusa route only recovers geometry + names, not settings, but at least the names survive. This confirms both halves of the cause: 1. routing decision: 3mf.cpp:368 substring test on "PrusaSlicer" (and Model.cpp:542); 2. symptom origin: bbs_3mf.cpp:2325 "Object_N" fallback. ## Fix-direction note for the next job The reporter's proposed patch (detect the sidecar via `MODEL_CONFIG_FILE`) actually does work in THIS codebase, contrary to the earlier summary's concern: here `MODEL_CONFIG_FILE = "Metadata/Slic3r_PE_model.config"` (3mf.cpp:103) and it is exactly the slic3r-family model-config sidecar that `_3MF_Importer::_extract_model_config_from_archive` (3mf.cpp:1376) reads to restore names, and which SuperSlicer writes. Simpler and closer to the reporter's diagnosis would be to widen the substring test at 3mf.cpp:368 to also accept "SuperSlicer"/"Slic3r". A caveat either way: routing SuperSlicer files into load_3mf also subjects their Metadata/Slic3r_PE_model.config to settings import, and raises the "not supported by OrcaSlicer" dialog seen with the control file.