Merge branch 'blender-v2.81-release'
This commit is contained in:
@@ -555,7 +555,7 @@ void BlenderSync::sync_objects(BL::Depsgraph &b_depsgraph,
|
||||
/* test if object needs to be hidden */
|
||||
const bool show_self = b_instance.show_self();
|
||||
const bool show_particles = b_instance.show_particles();
|
||||
const bool show_in_viewport = b_ob.visible_in_viewport_get(b_v3d);
|
||||
const bool show_in_viewport = !b_v3d || b_ob.visible_in_viewport_get(b_v3d);
|
||||
|
||||
if (show_in_viewport && (show_self || show_particles)) {
|
||||
/* object itself */
|
||||
|
||||
@@ -1061,6 +1061,8 @@ bool BKE_base_is_visible(const View3D *v3d, const Base *base)
|
||||
|
||||
bool BKE_object_is_visible_in_viewport(const struct View3D *v3d, const struct Object *ob)
|
||||
{
|
||||
BLI_assert(v3d != NULL);
|
||||
|
||||
if (ob->restrictflag & OB_RESTRICT_VIEWPORT) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user