WIP: Fix of PrusaControl import.

Now the transformation matrices need to be restored as well.
This commit is contained in:
bubnikv 2018-12-17 12:11:51 +01:00
parent 0a6e4cb39a
commit 7e8d9c154d
3 changed files with 2 additions and 3 deletions

View File

@ -329,7 +329,7 @@ bool load_prus(const char *path, Model *model)
if (! mz_zip_reader_file_stat(&archive, i, &stat)) if (! mz_zip_reader_file_stat(&archive, i, &stat))
continue; continue;
std::vector<char> buffer; std::vector<char> buffer;
buffer.assign((size_t)stat.m_uncomp_size + 1, 0); buffer.assign((size_t)stat.m_uncomp_size, 0);
res = mz_zip_reader_extract_file_to_mem(&archive, stat.m_filename, (char*)buffer.data(), (size_t)stat.m_uncomp_size, 0); res = mz_zip_reader_extract_file_to_mem(&archive, stat.m_filename, (char*)buffer.data(), (size_t)stat.m_uncomp_size, 0);
if (res == MZ_FALSE) if (res == MZ_FALSE)
std::runtime_error(std::string("Error while extracting a file from ") + path); std::runtime_error(std::string("Error while extracting a file from ") + path);

View File

@ -487,7 +487,6 @@ WipeTowerPrusaMM::material_type WipeTowerPrusaMM::parse_material(const char *nam
return INVALID; return INVALID;
} }
// Returns gcode to prime the nozzles at the front edge of the print bed. // Returns gcode to prime the nozzles at the front edge of the print bed.
WipeTower::ToolChangeResult WipeTowerPrusaMM::prime( WipeTower::ToolChangeResult WipeTowerPrusaMM::prime(
// print_z of the first layer. // print_z of the first layer.

View File

@ -155,7 +155,7 @@ class GLCanvas3D
// float distance; // float distance;
#if !ENABLE_CONSTRAINED_CAMERA_TARGET #if !ENABLE_CONSTRAINED_CAMERA_TARGET
Vec3d target; Vec3d target;
#endif !// ENABLE_CONSTRAINED_CAMERA_TARGET #endif // ENABLE_CONSTRAINED_CAMERA_TARGET
private: private:
#if ENABLE_CONSTRAINED_CAMERA_TARGET #if ENABLE_CONSTRAINED_CAMERA_TARGET