SLA gizmo fix: recalculation of the mesh was sometimes skipped

This commit is contained in:
Lukas Matena 2019-04-10 13:32:21 +02:00
parent bce98984a1
commit e6439ad010
2 changed files with 20 additions and 27 deletions

View file

@ -21,7 +21,7 @@ class GLGizmoSlaSupports : public GLGizmoBase
{
private:
ModelObject* m_model_object = nullptr;
ModelObject* m_old_model_object = nullptr;
ModelID m_current_mesh_model_id = 0;
int m_active_instance = -1;
std::pair<Vec3f, Vec3f> unproject_on_mesh(const Vec2d& mouse_pos);