Fix T50008: camera DOF Distance picking from W key menu not working.

This commit is contained in:
Brecht Van Lommel 2016-11-12 22:29:49 +01:00
parent 447fc7c4ce
commit 43703fa4bf
Notes: blender-bot 2023-02-14 09:44:56 +01:00
Referenced by issue #50008, Camera W menu DOF distance picker greyed out
1 changed files with 9 additions and 0 deletions

View File

@ -1083,6 +1083,15 @@ static int depthdropper_poll(bContext *C)
return 1;
}
}
else {
RegionView3D *rv3d = CTX_wm_region_view3d(C);
if (rv3d && rv3d->persp == RV3D_CAMOB) {
View3D *v3d = CTX_wm_view3d(C);
if (v3d->camera && v3d->camera->data && !ID_IS_LINKED_DATABLOCK(v3d->camera->data)) {
return 1;
}
}
}
return 0;
}