diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-15 16:08:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-15 16:08:17 +0400 |
commit | 7f598451fca43d251ed4c0d0ba19239ad2e351f0 (patch) | |
tree | 6e3dbd25a8e1a19945637c6cca80e308a982634c /source/blender/editors | |
parent | 1fc9fabfbf3e3688d66264457abfa7df125fc1eb (diff) |
fix [#26906] Panorama Button (Camera Data Properties)
- render check for ortho/panorama combination wasn't working since the flags were not initialized at the time of checking.
- disable panorama button in ortho mode.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 27fc13a0a0a..01a9a75ca13 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -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); |