Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mesh.c
| Show First 20 Lines • Show All 2,636 Lines • ▼ Show 20 Lines | RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_layer_stencil_get", | ||||
| "rna_Mesh_uv_layer_stencil_set", NULL, NULL); | "rna_Mesh_uv_layer_stencil_set", NULL, NULL); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Mask UV loop layer", "UV loop layer to mask the painted area"); | RNA_def_property_ui_text(prop, "Mask UV loop layer", "UV loop layer to mask the painted area"); | ||||
| prop = RNA_def_property(srna, "uv_layer_stencil_index", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "uv_layer_stencil_index", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_funcs(prop, "rna_Mesh_uv_layer_stencil_index_get", | RNA_def_property_int_funcs(prop, "rna_Mesh_uv_layer_stencil_index_get", | ||||
| "rna_Mesh_uv_layer_stencil_index_set", "rna_Mesh_uv_layer_index_range"); | "rna_Mesh_uv_layer_stencil_index_set", "rna_Mesh_uv_layer_index_range"); | ||||
| RNA_def_property_ui_text(prop, "Mask UV loop layer Index", "Mask UV loop layer index"); | RNA_def_property_ui_text(prop, "Mask UV loop layer Index", "Mask UV loop layer index"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_data"); | |||||
| /* Vertex colors */ | /* Vertex colors */ | ||||
| prop = RNA_def_property(srna, "vertex_colors", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "vertex_colors", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "ldata.layers", "ldata.totlayer"); | RNA_def_property_collection_sdna(prop, NULL, "ldata.layers", "ldata.totlayer"); | ||||
| RNA_def_property_collection_funcs(prop, "rna_Mesh_vertex_colors_begin", NULL, NULL, NULL, | RNA_def_property_collection_funcs(prop, "rna_Mesh_vertex_colors_begin", NULL, NULL, NULL, | ||||
| "rna_Mesh_vertex_colors_length", NULL, NULL, NULL); | "rna_Mesh_vertex_colors_length", NULL, NULL, NULL); | ||||
| RNA_def_property_struct_type(prop, "MeshLoopColorLayer"); | RNA_def_property_struct_type(prop, "MeshLoopColorLayer"); | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||