diff --git a/src/libslic3r/PlaceholderParser.cpp b/src/libslic3r/PlaceholderParser.cpp index b83ecbac0e..92e4210f3c 100644 --- a/src/libslic3r/PlaceholderParser.cpp +++ b/src/libslic3r/PlaceholderParser.cpp @@ -1011,10 +1011,10 @@ namespace client OptWithPos &output) { if (! ctx->skipping()) { - if (! opt.opt->is_vector()) - ctx->throw_exception("Cannot index a scalar variable", opt.it_range); if (index < 0) index = 0; // Orca: fallback to first element if index < 0, this matches the behavior of BambuStudio + if (!opt.opt->is_vector()) + index = -1; // Orca: ignore the index if variable is scalar, this matches the behavior of BambuStudio output = opt; output.index = index; } else