Fixed crash while exporting MultiMaterial
This commit is contained in:
parent
7375f6a6f5
commit
d4f1ed0036
@ -1384,7 +1384,7 @@ void GCode::apply_print_config(const PrintConfig &print_config)
|
|||||||
|
|
||||||
void GCode::append_full_config(const Print& print, std::string& str)
|
void GCode::append_full_config(const Print& print, std::string& str)
|
||||||
{
|
{
|
||||||
char buff[1024];
|
char buff[4096];
|
||||||
|
|
||||||
const StaticPrintConfig *configs[] = { &print.config, &print.default_object_config, &print.default_region_config };
|
const StaticPrintConfig *configs[] = { &print.config, &print.default_object_config, &print.default_region_config };
|
||||||
for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++i) {
|
for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user