Added debug output to investigate SPE-807
This commit is contained in:
parent
405d18a7fa
commit
3e7f76b578
2 changed files with 54 additions and 4 deletions
|
@ -4215,18 +4215,61 @@ void GLCanvas3D::set_bed_shape(const Pointfs& shape)
|
||||||
{
|
{
|
||||||
bool new_shape = m_bed.set_shape(shape);
|
bool new_shape = m_bed.set_shape(shape);
|
||||||
|
|
||||||
// Set the origin and size for painting of the coordinate system axes.
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
m_axes.origin = Vec3d(0.0, 0.0, (double)GROUND_Z);
|
// // Set the origin and size for painting of the coordinate system axes.
|
||||||
set_bed_axes_length(0.1 * m_bed.get_bounding_box().max_size());
|
// m_axes.origin = Vec3d(0.0, 0.0, (double)GROUND_Z);
|
||||||
|
// set_bed_axes_length(0.1 * m_bed.get_bounding_box().max_size());
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
if (new_shape)
|
if (new_shape)
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
{
|
||||||
|
Bed::EType type = m_bed.get_type();
|
||||||
|
|
||||||
|
std::cout << "set_bed_shape: (" << (void*)this << ")";
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case Bed::MK2:
|
||||||
|
{
|
||||||
|
std::cout << " [MK2]";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Bed::MK3:
|
||||||
|
{
|
||||||
|
std::cout << " [MK3]";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Bed::SL1:
|
||||||
|
{
|
||||||
|
std::cout << " [SL1]";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Bed::Custom:
|
||||||
|
{
|
||||||
|
std::cout << " [Custom]";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
std::cout << " \"" << dynamic_cast<const ConfigOptionString*>(m_config->option("printer_model"))->value << "\"" << std::endl;
|
||||||
|
|
||||||
|
// Set the origin and size for painting of the coordinate system axes.
|
||||||
|
m_axes.origin = Vec3d(0.0, 0.0, (double)GROUND_Z);
|
||||||
|
set_bed_axes_length(0.1 * m_bed.get_bounding_box().max_size());
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
#if ENABLE_REWORKED_BED_SHAPE_CHANGE
|
#if ENABLE_REWORKED_BED_SHAPE_CHANGE
|
||||||
m_requires_zoom_to_bed = true;
|
m_requires_zoom_to_bed = true;
|
||||||
#else
|
#else
|
||||||
zoom_to_bed();
|
zoom_to_bed();
|
||||||
#endif // ENABLE_REWORKED_BED_SHAPE_CHANGE
|
#endif // ENABLE_REWORKED_BED_SHAPE_CHANGE
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
m_dirty = true;
|
m_dirty = true;
|
||||||
|
}
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
// m_dirty = true;
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLCanvas3D::set_bed_axes_length(double length)
|
void GLCanvas3D::set_bed_axes_length(double length)
|
||||||
|
@ -4473,6 +4516,9 @@ void GLCanvas3D::render()
|
||||||
#if ENABLE_REWORKED_BED_SHAPE_CHANGE
|
#if ENABLE_REWORKED_BED_SHAPE_CHANGE
|
||||||
if (m_requires_zoom_to_bed)
|
if (m_requires_zoom_to_bed)
|
||||||
{
|
{
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
std::cout << "zooming to bed" << std::endl;
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
zoom_to_bed();
|
zoom_to_bed();
|
||||||
const Size& cnv_size = get_canvas_size();
|
const Size& cnv_size = get_canvas_size();
|
||||||
_resize((unsigned int)cnv_size.get_width(), (unsigned int)cnv_size.get_height());
|
_resize((unsigned int)cnv_size.get_width(), (unsigned int)cnv_size.get_height());
|
||||||
|
|
|
@ -227,6 +227,10 @@ class GLCanvas3D
|
||||||
public:
|
public:
|
||||||
Bed();
|
Bed();
|
||||||
|
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
EType get_type() const { return m_type; }
|
||||||
|
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
bool is_prusa() const;
|
bool is_prusa() const;
|
||||||
bool is_custom() const;
|
bool is_custom() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue