Fix object-dupli selection w/ COW
This commit is contained in:
parent
f1fd5ed74f
commit
7fee5f5643
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue