fix [#26906] Panorama Button (Camera Data Properties)
[blender-staging.git] / source / blender / editors / sculpt_paint / paint_image.c
index 27fc13a0a0a80f1fbf930d3d4f9caf16b8bb9ae0..01a9a75ca13d38d2b7d6f28450fae48505b2737e 100644 (file)
@@ -2992,6 +2992,7 @@ static void project_paint_begin(ProjPaintState *ps)
                                invert_m4_m4(viewmat, viewinv);
 
                                /* camera winmat */
+                               object_camera_mode(&ps->scene->r, camera);
                                object_camera_matrix(&ps->scene->r, camera, ps->winx, ps->winy, 0,
                                                winmat, &_viewplane, &ps->clipsta, &ps->clipend,
                                                &_lens, &_ycor, &_viewdx, &_viewdy);