Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2020-10-28 12:39:37 +0300
committerSergey Sharybin <sergey@blender.org>2020-10-28 12:39:37 +0300
commit24686351746532a72a5dac9a5bca0c6fed4fe832 (patch)
tree395f5b09696ccc8457c290ca2afbf9cbd1c3e48c /release/scripts/startup/bl_ui/space_clip.py
parent0269f0c574525128113877c1fcfee3682fc2cbca (diff)
Tracking: Move optical center to lens panel
Optical center is in fact a property of lens rather than a camera body.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_clip.py')
-rw-r--r--release/scripts/startup/bl_ui/space_clip.py8
1 files changed, 4 insertions, 4 deletions
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'
@@ -917,6 +913,10 @@ class CLIP_PT_tracking_lens(Panel):
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':
col = layout.column(align=True)