Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-08 04:18:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-08 04:18:57 +0400
commit7bc3eeb70741f83e4930b0cd4c42f0bd5d571cc0 (patch)
tree718e7ce9483d98c333b63993f2122b67db126f6b /source/blender/makesrna/intern/rna_mesh.c
parent1ec4629d88e14e91edcbfbac4fcae6325f08f31f (diff)
bmesh todo, add UV loop flags pin & select
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh.c')
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index d08e3f71625..d41c093c09b 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -1489,7 +1489,17 @@ static void rna_def_mloopuv(BlenderRNA *brna)
prop= RNA_def_property(srna, "uv", PROP_FLOAT, PROP_XYZ);
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
- /* BMESH_TODO: add props for each MLoopUV flag */
+ prop= RNA_def_property(srna, "pin_uv", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", MLOOPUV_PINNED);
+ RNA_def_property_ui_text(prop, "UV Pinned", "");
+
+ prop= RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", MLOOPUV_VERTSEL);
+ RNA_def_property_ui_text(prop, "UV Pinned", "");
+
+ prop= RNA_def_property(srna, "select_edge", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", MLOOPUV_EDGESEL);
+ RNA_def_property_ui_text(prop, "UV Pinned", "");
}
static void rna_def_mtface(BlenderRNA *brna)
@@ -1659,7 +1669,7 @@ static void rna_def_mtexpoly(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "UV Selected", "");
RNA_def_property_update(prop, 0, "rna_Mesh_update_select");
-#if 0 /*BMESH_TODO*/
+#if 0 /* moved to MeshUVLoopLayer */
prop= RNA_def_property(srna, "pin_uv", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "unwrap", TF_PIN1);
RNA_def_property_array(prop, 4);