Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_tracking.c
| Show First 20 Lines • Show All 1,468 Lines • ▼ Show 20 Lines | static void rna_def_trackingPlaneTrack(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Select", "Plane track is selected"); | RNA_def_property_ui_text(prop, "Select", "Plane track is selected"); | ||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | ||||
| /* auto keyframing */ | /* auto keyframing */ | ||||
| prop = RNA_def_property(srna, "use_auto_keying", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_auto_keying", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", PLANE_TRACK_AUTOKEY); | RNA_def_property_boolean_sdna(prop, NULL, "flag", PLANE_TRACK_AUTOKEY); | ||||
| RNA_def_property_ui_text(prop, "Auto Keyframe", "Automatic keyframe insertion when moving plane corners"); | RNA_def_property_ui_text(prop, "Auto Keyframe", "Automatic keyframe insertion when moving plane corners"); | ||||
| RNA_def_property_ui_icon(prop, ICON_REC, 0); | RNA_def_property_ui_icon(prop, ICON_REC, 0); | ||||
| /* image */ | |||||
| prop = RNA_def_property(srna, "image", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "image"); | |||||
brecht: Not strictly needed if the property identifier is the same. | |||||
| RNA_def_property_struct_type(prop, "Image"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Image", "Image displayed in the track during editing in clip editor"); | |||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | |||||
| /* image opacity */ | |||||
| prop = RNA_def_property(srna, "image_opacity", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "image_opacity"); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_range(prop, 0.0, 1.0); | |||||
| RNA_def_property_ui_text(prop, "Image Opacity", "Opacity of the image"); | |||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | |||||
| } | } | ||||
| static void rna_def_trackingStabilization(BlenderRNA *brna) | static void rna_def_trackingStabilization(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem filter_items[] = { | static EnumPropertyItem filter_items[] = { | ||||
| ▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines | |||||
Not strictly needed if the property identifier is the same.