From 24686351746532a72a5dac9a5bca0c6fed4fe832 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 28 Oct 2020 10:39:37 +0100 Subject: Tracking: Move optical center to lens panel Optical center is in fact a property of lens rather than a camera body. --- release/scripts/startup/bl_ui/space_clip.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 7cf45e73a27..a0cf22877d5 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -877,10 +877,6 @@ class CLIP_PT_tracking_camera(Panel): col.prop(clip.tracking.camera, "sensor_width", text="Sensor Width") col.prop(clip.tracking.camera, "pixel_aspect", text="Pixel Aspect") - col = layout.column() - col.prop(clip.tracking.camera, "principal", text="Optical Center") - col.operator("clip.set_center_principal", text="Set Center") - class CLIP_PT_tracking_lens(Panel): bl_space_type = 'CLIP_EDITOR' @@ -916,6 +912,10 @@ class CLIP_PT_tracking_lens(Panel): col.prop(camera, "focal_length_pixels") col.prop(camera, "units", text="Units") + col = layout.column() + col.prop(clip.tracking.camera, "principal", text="Optical Center") + col.operator("clip.set_center_principal", text="Set Center") + col = layout.column() col.prop(camera, "distortion_model", text="Lens Distortion") if camera.distortion_model == 'POLYNOMIAL': -- cgit v1.2.3