Reorder options in refine menu + fixed typo
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Dec 2011 18:51:43 +0000 (18:51 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Dec 2011 18:51:43 +0000 (18:51 +0000)
Patch by Sebastian Koenig, thanks!

source/blender/makesrna/intern/rna_tracking.c

index 5a2ef54cfc1ef8b1d28486b67e4f678650246a49..2fdf733752b27384cd5a49ea8820a810eb6dae9b 100644 (file)
@@ -302,17 +302,17 @@ static void rna_def_trackingSettings(BlenderRNA *brna)
        static EnumPropertyItem refine_items[] = {
                {0, "NONE", 0, "Nothing", "Do not refine camera intrinsics"},
                {REFINE_FOCAL_LENGTH, "FOCAL_LENGTH", 0, "Focal Length", "Refine focal length"},
+               {REFINE_FOCAL_LENGTH|REFINE_RADIAL_DISTORTION_K1, "FOCAL_LENGTH_RADIAL_K1", 0, "Focal length, K1", "Refine focal length and radial distortion K1"},
                {REFINE_FOCAL_LENGTH|
-                REFINE_PRINCIPAL_POINT, "FOCAL_LENGTH_PRINCIPAL_POINT", 0, "Focal Length, Optical Center", "Refine focal length and optical center"},
+                REFINE_RADIAL_DISTORTION_K1|
+                REFINE_RADIAL_DISTORTION_K2, "FOCAL_LENGTH_RADIAL_K1_K2", 0, "Focal length, K1, K2", "Refine focal length and radial distortion K1 and K2"},
                {REFINE_FOCAL_LENGTH|
                 REFINE_PRINCIPAL_POINT|
                 REFINE_RADIAL_DISTORTION_K1|
                 REFINE_RADIAL_DISTORTION_K2,
                 "FOCAL_LENGTH_PRINCIPAL_POINT_RADIAL_K1_K2", 0, "Focal Length, Optical Center, K1, K2", "Refine focal length, optical center and radial distortion K1 and K2"},
                {REFINE_FOCAL_LENGTH|
-                REFINE_RADIAL_DISTORTION_K1|
-                REFINE_RADIAL_DISTORTION_K2, "FOCAL_LENGTH_RADIAL_K1_K2", 0, "Focal length, K1. K2", "Refine focal length and radial distortion K1 and K2"},
-               {REFINE_FOCAL_LENGTH|REFINE_RADIAL_DISTORTION_K1, "FOCAL_LENGTH_RADIAL_K1", 0, "Focal length, K1", "Refine focal length and radial distortion K1"},
+                REFINE_PRINCIPAL_POINT, "FOCAL_LENGTH_PRINCIPAL_POINT", 0, "Focal Length, Optical Center", "Refine focal length and optical center"},
                {0, NULL, 0, NULL, NULL}
        };