Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_tracking.c
| Show First 20 Lines • Show All 1,192 Lines • ▼ Show 20 Lines | static void rna_def_trackingCamera(BlenderRNA *brna) | ||||
| /* Units */ | /* Units */ | ||||
| prop = RNA_def_property(srna, "units", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "units", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "units"); | RNA_def_property_enum_sdna(prop, NULL, "units"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_enum_items(prop, camera_units_items); | RNA_def_property_enum_items(prop, camera_units_items); | ||||
| RNA_def_property_ui_text(prop, "Units", "Units used for camera focal length"); | RNA_def_property_ui_text(prop, "Units", "Units used for camera focal length"); | ||||
| /* Principal Point */ | /* Principal Point */ | ||||
| prop = RNA_def_property(srna, "principal", PROP_FLOAT, PROP_PIXEL); | prop = RNA_def_property(srna, "principal_point", PROP_FLOAT, PROP_PIXEL); | ||||
| RNA_def_property_array(prop, 2); | RNA_def_property_array(prop, 2); | ||||
| RNA_def_property_float_sdna(prop, NULL, "principal"); | RNA_def_property_float_sdna(prop, NULL, "principal_point"); | ||||
| RNA_def_property_range(prop, -1, 1); | |||||
| RNA_def_property_ui_range(prop, -1, 1, 0.1, 3); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text(prop, "Principal Point", "Optical center of lens"); | RNA_def_property_ui_text(prop, "Principal Point", "Optical center of lens"); | ||||
| RNA_def_property_update(prop, NC_MOVIECLIP | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_MOVIECLIP | NA_EDITED, NULL); | ||||
| /* Radial distortion parameters */ | /* Radial distortion parameters */ | ||||
| prop = RNA_def_property(srna, "k1", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "k1", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "k1"); | RNA_def_property_float_sdna(prop, NULL, "k1"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| ▲ Show 20 Lines • Show All 1,412 Lines • Show Last 20 Lines | |||||