[Bf-blender-cvs] [a205493426b] blender2.8: Fix camera lens gizmo sensor comparison
Campbell Barton
noreply at git.blender.org
Mon Dec 3 01:28:13 CET 2018
Commit: a205493426bee2c604cb7160465138db711efaba
Author: Campbell Barton
Date: Mon Dec 3 11:26:03 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBa205493426bee2c604cb7160465138db711efaba
Fix camera lens gizmo sensor comparison
===================================================================
M source/blender/editors/space_view3d/view3d_gizmo_camera.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_camera.c b/source/blender/editors/space_view3d/view3d_gizmo_camera.c
index b96d0874af0..c80a11cbf16 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_camera.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_camera.c
@@ -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);
}
More information about the Bf-blender-cvs
mailing list