Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_manipulator_camera.c
| Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | static bool WIDGETGROUP_camera_view_poll(const bContext *C, wmManipulatorGroupType *UNUSED(wgt)) | ||||
| RegionView3D *rv3d = ar->regiondata; | RegionView3D *rv3d = ar->regiondata; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| View3D *v3d = CTX_wm_view3d(C); | View3D *v3d = CTX_wm_view3d(C); | ||||
| /* This is just so the border isn't always in the way, | /* This is just so the border isn't always in the way, | ||||
| * stealing mouse clicks from regular usage. | * stealing mouse clicks from regular usage. | ||||
| * We could change the rules for when to show. */ | * We could change the rules for when to show. */ | ||||
| { | { | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| if (scene->camera != OBACT(sl)) { | if (scene->camera != OBACT(sl)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| if (rv3d->persp == RV3D_CAMOB) { | if (rv3d->persp == RV3D_CAMOB) { | ||||
| if (scene->r.mode & R_BORDER) { | if (scene->r.mode & R_BORDER) { | ||||
| return true; | return true; | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||