Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/modes/object_mode.c')
-rw-r--r--source/blender/draw/modes/object_mode.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index 7f364698d07..824068a9800 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -856,17 +856,6 @@ static void image_calc_aspect(Image *ima, ImageUser *iuser, float r_image_aspect
}
}
-static bool is_image_empty_visible(Object *ob, RegionView3D *rv3d)
-{
- int visibility_flag = ob->empty_image_visibility_flag;
- if (rv3d->is_persp) {
- return visibility_flag & OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE;
- }
- else {
- return visibility_flag & OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC;
- }
-}
-
/* per-image shading groups for image-type empty objects */
struct EmptyImageShadingGroupData {
DRWShadingGroup *shgrp_image;
@@ -879,7 +868,7 @@ static void DRW_shgroup_empty_image(
{
/* TODO: 'StereoViews', see draw_empty_image. */
- if (!is_image_empty_visible(ob, rv3d)) return;
+ if (!BKE_image_empty_visible_in_view3d(ob, rv3d)) return;
if (sgl->image_plane_map == NULL) {
sgl->image_plane_map = BLI_ghash_ptr_new(__func__);