Fix T67548: Camera background-image ignores shift
authorCampbell Barton <ideasman42@gmail.com>
Wed, 24 Jul 2019 10:42:39 +0000 (20:42 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 24 Jul 2019 10:42:39 +0000 (20:42 +1000)
Regression from 2.79

source/blender/draw/modes/object_mode.c

index 9fc11e4f36faed5210c45f28ca0a4c52e97b45f6..ffa013d2758e7a2d5c8241b760acb2f9d123ba36 100644 (file)
@@ -1256,7 +1256,7 @@ static void DRW_shgroup_camera_background_images(OBJECT_Shaders *sh_data,
 
       if (!DRW_state_is_image_render()) {
         rctf render_border;
-        ED_view3d_calc_camera_border(scene, depsgraph, ar, v3d, rv3d, &render_border, true);
+        ED_view3d_calc_camera_border(scene, depsgraph, ar, v3d, rv3d, &render_border, false);
         camera_width = render_border.xmax - render_border.xmin;
         camera_height = render_border.ymax - render_border.ymin;
         camera_aspect = camera_width / camera_height;