Fix object-dupli selection w/ COW

This commit is contained in:
Campbell Barton 2018-06-06 15:19:16 +02:00
parent f1fd5ed74f
commit 7fee5f5643
1 changed files with 5 additions and 2 deletions

View File

@ -1698,8 +1698,11 @@ void DRW_draw_select_loop(
DEG_ITER_OBJECT_FLAG_DUPLI)
{
if ((ob->base_flag & BASE_SELECTABLED) != 0) {
Object *ob_orig = DEG_get_original_object(ob);
DRW_select_load_id(ob_orig->select_color);
/* This relies on dupli instances being after their instancing object. */
if ((ob->base_flag & BASE_FROMDUPLI) == 0) {
Object *ob_orig = DEG_get_original_object(ob);
DRW_select_load_id(ob_orig->select_color);
}
drw_engines_cache_populate(ob);
}
}