Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_curves.c
| Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | static void rna_def_curves(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "surface", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "surface", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Object"); | RNA_def_property_struct_type(prop, "Object"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Mesh_object_poll"); | RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Mesh_object_poll"); | ||||
| RNA_def_property_ui_text(prop, "Surface", "Mesh object that the curves can be attached to"); | RNA_def_property_ui_text(prop, "Surface", "Mesh object that the curves can be attached to"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | ||||
| prop = RNA_def_property(srna, "surface_uv_name", PROP_STRING, PROP_NONE); | |||||
JacquesLucke: How about calling it `surface_uv_map` (here and in dna)? | |||||
| RNA_def_property_string_sdna(prop, NULL, "surface_uv_name"); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Surface UV Map", | |||||
| "The name of the attribute on the surface mesh used to define the " | |||||
| "attachement of each curve"); | |||||
| RNA_def_property_update(prop, 0, "rna_Curves_update_draw"); | |||||
| /* Symmetry. */ | /* Symmetry. */ | ||||
| prop = RNA_def_property(srna, "use_mirror_x", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mirror_x", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "symmetry", CURVES_SYMMETRY_X); | RNA_def_property_boolean_sdna(prop, NULL, "symmetry", CURVES_SYMMETRY_X); | ||||
| RNA_def_property_ui_text(prop, "X", "Enable symmetry in the X axis"); | RNA_def_property_ui_text(prop, "X", "Enable symmetry in the X axis"); | ||||
| RNA_def_property_update(prop, 0, "rna_Curves_update_draw"); | RNA_def_property_update(prop, 0, "rna_Curves_update_draw"); | ||||
| prop = RNA_def_property(srna, "use_mirror_y", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mirror_y", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "symmetry", CURVES_SYMMETRY_Y); | RNA_def_property_boolean_sdna(prop, NULL, "symmetry", CURVES_SYMMETRY_Y); | ||||
| Show All 35 Lines | |||||
How about calling it surface_uv_map (here and in dna)?