diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 22c26b3a5..ab6829111 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -467,6 +467,7 @@ void GCode::PlaceholderParserIntegration::init(const GCodeWriter &writer) // Reserve buffer for current position. this->position.assign(3, 0); this->opt_position = new ConfigOptionFloats(this->position); + this->output_config.set_key_value("position", this->opt_position); // Store zhop variable into the parser itself, it is a read-only variable to the script. this->opt_zhop = new ConfigOptionFloat(writer.get_zhop()); this->parser.set("zhop", this->opt_zhop);