From 4a3d7cfb0f3d9da8dfac3deef384f463be39d912 Mon Sep 17 00:00:00 2001
From: Enrico Turri <enricoturri@seznam.cz>
Date: Wed, 31 Jul 2019 15:30:03 +0200
Subject: [PATCH] Follow-up of
 https://github.com/prusa3d/PrusaSlicer/commit/9548dfd88f00a6d0c8d94faf4ef36fafd3dfc84f
 -> an hopefully smarter fix

---
 src/slic3r/GUI/GUI_ObjectList.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp
index a948529b9..70632a337 100644
--- a/src/slic3r/GUI/GUI_ObjectList.cpp
+++ b/src/slic3r/GUI/GUI_ObjectList.cpp
@@ -2824,7 +2824,7 @@ void ObjectList::update_selections_on_canvas()
         else
         {
             mode = Selection::Instance;
-            single_selection = false;
+            single_selection &= (obj_idx != selection.get_object_idx());
             std::vector<unsigned int> idxs = selection.get_volume_idxs_from_object(obj_idx);
             volume_idxs.insert(volume_idxs.end(), idxs.begin(), idxs.end());
         }