forked from blender/blender
Fix visibility of instancer object #43
@ -69,15 +69,16 @@ bool ObjectData::is_visible(BlenderSceneDelegate* scene_delegate, Object* object
|
|||||||
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_VIEWPORT;
|
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_VIEWPORT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
else {
|
else {
|
||||||
if (object->transflag & OB_DUPLI) {
|
if (object->parent) {
|
||||||
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
|
|
||||||
}
|
|
||||||
if (object->parent && (object->parent->transflag & OB_DUPLI)) {
|
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
}*/
|
else {
|
||||||
|
if (object->transflag & OB_DUPLI) {
|
||||||
|
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user