diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-15 13:53:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-15 13:55:13 +0300 |
commit | 3311505fd07310a6bfac79ce787dbd394002dd1f (patch) | |
tree | d69cb836843d3aa465f7302b5467ba1e711ad808 /source/blender/editors | |
parent | dd5e674a864f61792e5518f33fe0f0cd9844e4be (diff) |
Manipulator: border editable only w/ selected camera
While this isn't really needed, active border was annoying.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_manipulator_camera.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_manipulator_camera.c b/source/blender/editors/space_view3d/view3d_manipulator_camera.c index 26af554f13a..10f1684b6cb 100644 --- a/source/blender/editors/space_view3d/view3d_manipulator_camera.c +++ b/source/blender/editors/space_view3d/view3d_manipulator_camera.c @@ -301,6 +301,16 @@ static bool WIDGETGROUP_camera_view_poll(const bContext *C, wmManipulatorGroupTy Scene *scene = CTX_data_scene(C); View3D *v3d = CTX_wm_view3d(C); + /* This is just so the border isn't always in the way, + * stealing mouse clicks from regular usage. + * We could change the rules for when to show. */ + { + SceneLayer *sl = CTX_data_scene_layer(C); + if (scene->camera != OBACT_NEW) { + return false; + } + } + if (rv3d->persp == RV3D_CAMOB) { if (scene->r.mode & R_BORDER) { return true; |