Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Show First 20 Lines • Show All 1,272 Lines • ▼ Show 20 Lines | static void rna_def_modifier_subsurf(BlenderRNA *brna) | ||||
| RNA_def_property_range(prop, 0, 11); | RNA_def_property_range(prop, 0, 11); | ||||
| RNA_def_property_ui_range(prop, 0, 6, 1, -1); | RNA_def_property_ui_range(prop, 0, 6, 1, -1); | ||||
| RNA_def_property_ui_text(prop, "Render Levels", "Number of subdivisions to perform when rendering"); | RNA_def_property_ui_text(prop, "Render Levels", "Number of subdivisions to perform when rendering"); | ||||
| prop = RNA_def_property(srna, "show_only_control_edges", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_only_control_edges", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", eSubsurfModifierFlag_ControlEdges); | RNA_def_property_boolean_sdna(prop, NULL, "flags", eSubsurfModifierFlag_ControlEdges); | ||||
| RNA_def_property_ui_text(prop, "Optimal Display", "Skip drawing/rendering of interior subdivided edges"); | RNA_def_property_ui_text(prop, "Optimal Display", "Skip drawing/rendering of interior subdivided edges"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_crease", PROP_BOOLEAN, PROP_NONE); | |||||
brecht: `use_crease` -> `use_creases` would be a better name I think. | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", eSubsurfModifierFlag_UseCrease); | |||||
| RNA_def_property_ui_text(prop, "Use Crease", "Use crease from the input mesh edges"); | |||||
brechtUnsubmitted Not Done Inline ActionsPerhaps more descriptive: Use mesh edge crease information to sharpen edges. brecht: Perhaps more descriptive: `Use mesh edge crease information to sharpen edges`. | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| } | } | ||||
| static void rna_def_modifier_generic_map_info(StructRNA *srna) | static void rna_def_modifier_generic_map_info(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem prop_texture_coordinates_items[] = { | static const EnumPropertyItem prop_texture_coordinates_items[] = { | ||||
| {MOD_DISP_MAP_LOCAL, "LOCAL", 0, "Local", "Use the local coordinate system for the texture coordinates"}, | {MOD_DISP_MAP_LOCAL, "LOCAL", 0, "Local", "Use the local coordinate system for the texture coordinates"}, | ||||
| {MOD_DISP_MAP_GLOBAL, "GLOBAL", 0, "Global", "Use the global coordinate system for the texture coordinates"}, | {MOD_DISP_MAP_GLOBAL, "GLOBAL", 0, "Global", "Use the global coordinate system for the texture coordinates"}, | ||||
| {MOD_DISP_MAP_OBJECT, "OBJECT", 0, "Object", | {MOD_DISP_MAP_OBJECT, "OBJECT", 0, "Object", | ||||
| ▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | RNA_def_property_string_funcs(prop, "rna_MultiresModifier_filepath_get", "rna_MultiresModifier_filepath_length", | ||||
| "rna_MultiresModifier_filepath_set"); | "rna_MultiresModifier_filepath_set"); | ||||
| RNA_def_property_ui_text(prop, "File Path", "Path to external displacements file"); | RNA_def_property_ui_text(prop, "File Path", "Path to external displacements file"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "show_only_control_edges", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_only_control_edges", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", eMultiresModifierFlag_ControlEdges); | RNA_def_property_boolean_sdna(prop, NULL, "flags", eMultiresModifierFlag_ControlEdges); | ||||
| RNA_def_property_ui_text(prop, "Optimal Display", "Skip drawing/rendering of interior subdivided edges"); | RNA_def_property_ui_text(prop, "Optimal Display", "Skip drawing/rendering of interior subdivided edges"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_crease", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", eMultiresModifierFlag_UseCrease); | |||||
| RNA_def_property_ui_text(prop, "Use Crease", "Use crease from the input mesh edges"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| } | } | ||||
| static void rna_def_modifier_lattice(BlenderRNA *brna) | static void rna_def_modifier_lattice(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "LatticeModifier", "Modifier"); | srna = RNA_def_struct(brna, "LatticeModifier", "Modifier"); | ||||
| ▲ Show 20 Lines • Show All 3,759 Lines • Show Last 20 Lines | |||||
use_crease -> use_creases would be a better name I think.