Merge branch 'dev' of https://github.com/prusa3d/Slic3r into dev
This commit is contained in:
@@ -1051,6 +1051,8 @@ void GLGizmoFlatten::on_render(const BoundingBoxf3& box) const
|
||||
::glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
::glDisable(GL_BLEND);
|
||||
}
|
||||
|
||||
void GLGizmoFlatten::on_render_for_picking(const BoundingBoxf3& box) const
|
||||
@@ -1278,9 +1280,7 @@ bool GLGizmoFlatten::is_plane_update_necessary() const
|
||||
}
|
||||
|
||||
Vec3d GLGizmoFlatten::get_flattening_normal() const {
|
||||
Transform3d m = Transform3d::Identity();
|
||||
m.rotate(Eigen::AngleAxisd(-m_model_object->instances.front()->rotation, Vec3d::UnitZ()));
|
||||
Vec3d normal = m * m_normal;
|
||||
Vec3d normal = m_model_object->instances.front()->world_matrix().matrix().block(0, 0, 3, 3) * m_normal;
|
||||
m_normal = Vec3d::Zero();
|
||||
return normal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user