Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,499 Lines • ▼ Show 20 Lines | static const EnumPropertyItem scale_fit_methods[] = { | ||||
| "Keep image at its original size"}, | "Keep image at its original size"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "SequencerToolSettings", NULL); | srna = RNA_def_struct(brna, "SequencerToolSettings", NULL); | ||||
| RNA_def_struct_path_func(srna, "rna_SequencerToolSettings_path"); | RNA_def_struct_path_func(srna, "rna_SequencerToolSettings_path"); | ||||
| RNA_def_struct_ui_text(srna, "Sequencer Tool Settings", ""); | RNA_def_struct_ui_text(srna, "Sequencer Tool Settings", ""); | ||||
| /* Add strip settings. */ | |||||
| prop = RNA_def_property(srna, "fit_method", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "fit_method", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, scale_fit_methods); | RNA_def_property_enum_items(prop, scale_fit_methods); | ||||
| RNA_def_property_ui_text(prop, "Fit Method", "Scale fit method"); | RNA_def_property_ui_text(prop, "Fit Method", "Scale fit method"); | ||||
| /* Transform snapping. */ | |||||
| prop = RNA_def_property(srna, "use_snapping", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SEQ_USE_SNAPPING); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_icon(prop, ICON_SNAP_OFF, 1); | |||||
| RNA_def_property_ui_text(prop, "Use Snapping", "Snap to strip edges or current frame"); | |||||
| prop = RNA_def_property(srna, "snap_to_strip_hold_offset", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SEQ_SNAP_TO_STRIP_HOLD); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text(prop, "Snap to Hold Offset", "Snap to strip hold offset"); | |||||
| prop = RNA_def_property(srna, "snap_to_playhead", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SEQ_SNAP_TO_PLAYHEAD); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text(prop, "Snap to Playhead", "Snap to current frame"); | |||||
| prop = RNA_def_property(srna, "snap_ignore_muted", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SEQ_SNAP_IGNORE_MUTED); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text(prop, "Ignore Muted Strips", "Don't snap to hidden strips"); | |||||
| prop = RNA_def_property(srna, "snap_ignore_sound", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SEQ_SNAP_IGNORE_SOUND); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text(prop, "Ignore Sound Strips", "Don't snap to sound strips"); | |||||
| prop = RNA_def_property(srna, "snap_distance", PROP_INT, PROP_PIXEL); | |||||
| RNA_def_property_int_sdna(prop, NULL, "snap_distance"); | |||||
| RNA_def_property_int_default(prop, 15); | |||||
| RNA_def_property_ui_range(prop, 0, 50, 1, 1); | |||||
| RNA_def_property_ui_text(prop, "Snapping Distance", "Maximum distance for snapping in pixels"); | |||||
| } | } | ||||
| static void rna_def_unified_paint_settings(BlenderRNA *brna) | static void rna_def_unified_paint_settings(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem brush_size_unit_items[] = { | static const EnumPropertyItem brush_size_unit_items[] = { | ||||
| ▲ Show 20 Lines • Show All 4,466 Lines • Show Last 20 Lines | |||||