Fix camera lens gizmo sensor comparison

This commit is contained in:
Campbell Barton 2018-12-03 11:26:03 +11:00
parent 63ac7c799c
commit a205493426
Notes: blender-bot 2023-02-14 04:47:23 +01:00
Referenced by issue #58871, New Scene Collection Does Not Create A New Collection
Referenced by issue #58875, Clicking Scene Collection Does Not Select Collection Contents
Referenced by issue #58876, FBX Importer Doesn't Respect Size and Hierarchy
Referenced by issue #58826, Smoke Adaptive Domain not working 2.80
Referenced by issue #58800, Mesh Options > X Mirror not working
Referenced by issue #58738, FCurve modifier (generator) not updating correctly
Referenced by issue #58739, Camera Location, keyframe Bug
Referenced by issue #58725, controlling camera movement with keyframes
Referenced by issue #58685, Weight paint not painting on mesh in new pose
Referenced by issue #58673, Blender 2.8 Beta - Geometry disappearing when extrude or grab while in "user perspective (local)"
Referenced by issue #58659, Absolute grid snap don't work properly with custom grid scale
Referenced by issue #58648, Timeline scroll is set to RMB
Referenced by issue #58630, New Preferences drop down in Input tab  disappears when creating custom keymap
Referenced by issue #58633, Combing hair makes hair go inside model
Referenced by issue #58634, Particle Edit mode does not preserve hair length
Referenced by issue #58623, Mesh options - X mirror not working
Referenced by issue #58515, Dupli Mapping Issue Cycles
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ static void WIDGETGROUP_camera_refresh(const bContext *C, wmGizmoGroup *gzgroup)
(ca->drawsize * range) :
(scale_matrix * range /
/* Half sensor, intentionally use sensor from camera and not calculated above. */
(0.5f * ((ca->sensor_fit == CAMERA_SENSOR_FIT_HOR) ? ca->sensor_x : ca->sensor_y))));
(0.5f * ((sensor_fit == CAMERA_SENSOR_FIT_HOR) ? ca->sensor_x : ca->sensor_y))));
WM_gizmo_target_property_def_rna_ptr(widget, gz_prop_type, &camera_ptr, prop, -1);
}