diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-16 15:53:15 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-16 15:53:15 +0400 |
commit | 0f934ee3b7192aacafe8287d8521f22ecfbdfe2e (patch) | |
tree | d023d07cc2d8a5e98a2dea52946ba0115af9d5f1 | |
parent | cacd7c725b5d5c1961795ddc94b99c3a5aaaa43c (diff) |
Motion tracking: use PROP_PIXEL for pixel RNA values
-rw-r--r-- | source/blender/makesrna/intern/rna_tracking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_tracking.c b/source/blender/makesrna/intern/rna_tracking.c index 7acd078f006..75024951902 100644 --- a/source/blender/makesrna/intern/rna_tracking.c +++ b/source/blender/makesrna/intern/rna_tracking.c @@ -845,7 +845,7 @@ static void rna_def_trackingSettings(BlenderRNA *brna) "Track pattern from given frame when tracking marker to next frame"); /* default_margin */ - prop = RNA_def_property(srna, "default_margin", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "default_margin", PROP_INT, PROP_PIXEL); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_int_sdna(prop, NULL, "default_margin"); RNA_def_property_range(prop, 0, 300); @@ -986,7 +986,7 @@ static void rna_def_trackingCamera(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Units", "Units used for camera focal length"); /* Principal Point */ - prop = RNA_def_property(srna, "principal", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "principal", PROP_FLOAT, PROP_PIXEL); RNA_def_property_array(prop, 2); RNA_def_property_float_sdna(prop, NULL, "principal"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); @@ -1180,7 +1180,7 @@ static void rna_def_trackingTrack(BlenderRNA *brna) "Track pattern from given frame when tracking marker to next frame"); /* margin */ - prop = RNA_def_property(srna, "margin", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "margin", PROP_INT, PROP_PIXEL); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_int_sdna(prop, NULL, "margin"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); |