Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Context not available. | |||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem wave_deform_shape_items[] = { | |||||
| {MOD_WAVE_SHAPE_GAUSSIAN, | |||||
| "GAUSSIAN", | |||||
| 0, | |||||
| "Gaussian", | |||||
| "Gaussian shaped wave"}, | |||||
| {MOD_WAVE_SHAPE_SINE, | |||||
| "SINE", | |||||
| 0, | |||||
| "Sine", | |||||
| "Sinusoidal shaped wave"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| srna = RNA_def_struct(brna, "WaveModifier", "Modifier"); | srna = RNA_def_struct(brna, "WaveModifier", "Modifier"); | ||||
| RNA_def_struct_ui_text(srna, "Wave Modifier", "Wave effect modifier"); | RNA_def_struct_ui_text(srna, "Wave Modifier", "Wave effect modifier"); | ||||
| Context not available. | |||||
| RNA_define_lib_overridable(true); | RNA_define_lib_overridable(true); | ||||
| prop = RNA_def_property(srna, "wave_shape", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "waveshape"); | |||||
| RNA_def_property_enum_items(prop, wave_deform_shape_items); | |||||
| RNA_def_property_ui_text(prop, "Mode", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "lock_anim", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_WAVE_LOCK); | |||||
| RNA_def_property_ui_text(prop, "Lock Animation", "Prevents wave from auto-animating"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "use_x", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_x", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_WAVE_X); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_WAVE_X); | ||||
| RNA_def_property_ui_text(prop, "X", "X axis motion"); | RNA_def_property_ui_text(prop, "X", "X axis motion"); | ||||
| Context not available. | |||||