forked from blender/blender
Fix visibility of instancer object #43
@ -308,7 +308,10 @@ bool InstancerData::is_instance_visible(Object *object)
|
||||
int vis = BKE_object_visibility(object, deg_mode);
|
||||
bool ret = vis & OB_VISIBLE_SELF;
|
||||
if (deg_mode == DAG_EVAL_VIEWPORT) {
|
||||
if (!ret && (object->transflag & OB_DUPLI) == 0) {
|
||||
if (!ret && ((object->transflag & OB_DUPLI) == 0 ||
|
||||
(object->transflag & OB_DUPLI &&
|
||||
object->duplicator_visibility_flag & OB_DUPLI_FLAG_VIEWPORT)))
|
||||
{
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user