mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-24 23:44:25 +08:00
Fixed encoding issue when loading json with gantries
This commit is contained in:
parent
00f3083bf6
commit
db66335ee9
@ -10,6 +10,7 @@
|
||||
#include "boost/regex.hpp"
|
||||
#include "boost/property_tree/json_parser.hpp"
|
||||
#include "boost/algorithm/string/replace.hpp"
|
||||
#include <boost/nowide/fstream.hpp>
|
||||
|
||||
|
||||
|
||||
@ -37,7 +38,7 @@ static Sequential::PrinterGeometry get_printer_geometry(const ConfigBase& config
|
||||
{
|
||||
if (! printer_notes.empty()) {
|
||||
try {
|
||||
std::ifstream in(resources_dir() + "/data/printer_gantries/geometries.txt");
|
||||
boost::nowide::ifstream in(resources_dir() + "/data/printer_gantries/geometries.txt");
|
||||
boost::property_tree::ptree pt;
|
||||
boost::property_tree::read_json(in, pt);
|
||||
for (const auto& printer : pt.get_child("printers")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user