Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Show First 20 Lines • Show All 2,124 Lines • ▼ Show 20 Lines | static void rna_def_modifier_displace(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Strength", "Amount to displace geometry"); | RNA_def_property_ui_text(prop, "Strength", "Amount to displace geometry"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "direction", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "direction", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, prop_direction_items); | RNA_def_property_enum_items(prop, prop_direction_items); | ||||
| RNA_def_property_ui_text(prop, "Direction", ""); | RNA_def_property_ui_text(prop, "Direction", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_local_direction", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_DISP_FLAG_DIR_LOCAL); | |||||
| RNA_def_property_ui_text(prop, "L", "Direction is defined in local coordinates"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | |||||
brecht: I would make this a "space" enum, and have "Local" and "Global" items. No need for a cryptic… | |||||
| rna_def_modifier_generic_map_info(srna); | rna_def_modifier_generic_map_info(srna); | ||||
| } | } | ||||
| static void rna_def_modifier_uvproject(BlenderRNA *brna) | static void rna_def_modifier_uvproject(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 2,658 Lines • Show Last 20 Lines | |||||
I would make this a "space" enum, and have "Local" and "Global" items. No need for a cryptic "L" label.