Fix object selection w/ COW
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Jun 2018 06:20:05 +0000 (08:20 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Jun 2018 06:20:05 +0000 (08:20 +0200)
source/blender/draw/intern/draw_manager.c

index 76712c4146e270ccba74d2a7b2a9b609430c94d2..d2554443d7b0ee6e4f6551a65afd3fe3f2b759cc 100644 (file)
@@ -1698,7 +1698,8 @@ void DRW_draw_select_loop(
                                DEG_ITER_OBJECT_FLAG_DUPLI)
                        {
                                if ((ob->base_flag & BASE_SELECTABLED) != 0) {
-                                       DRW_select_load_id(ob->select_color);
+                                       Object *ob_orig = DEG_get_original_object(ob);
+                                       DRW_select_load_id(ob_orig->select_color);
                                        drw_engines_cache_populate(ob);
                                }
                        }