mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-26 02:11:18 +00:00
fix: custom G-code keyword check uses the wrong list and skips the editor (#14908)
This commit is contained in:
@@ -2378,9 +2378,9 @@ namespace DoExport {
|
||||
static const unsigned int MAX_TAGS_COUNT = 5;
|
||||
std::vector<std::pair<std::string, std::string>> ret;
|
||||
|
||||
auto check = [&ret](const std::string& source, const std::string& gcode) {
|
||||
auto check = [&ret, is_bbl_printer = print.is_BBL_printer()](const std::string& source, const std::string& gcode) {
|
||||
std::vector<std::string> tags;
|
||||
if (GCodeProcessor::contains_reserved_tags(gcode, MAX_TAGS_COUNT, tags)) {
|
||||
if (GCodeProcessor::contains_reserved_tags(gcode, MAX_TAGS_COUNT, tags, is_bbl_printer)) {
|
||||
if (!tags.empty()) {
|
||||
size_t i = 0;
|
||||
while (ret.size() < MAX_TAGS_COUNT && i < tags.size()) {
|
||||
|
||||
Reference in New Issue
Block a user