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 {
|
||||||
|
if (object->parent) {
|
||||||
|
ret = false;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if (object->transflag & OB_DUPLI) {
|
if (object->transflag & OB_DUPLI) {
|
||||||
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
|
ret = object->duplicator_visibility_flag & OB_DUPLI_FLAG_RENDER;
|
||||||
}
|
}
|
||||||
if (object->parent && (object->parent->transflag & OB_DUPLI)) {
|
|
||||||
ret = false;
|
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user