diff options
-rw-r--r-- | source/blender/editors/mesh/editmesh.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c index 56e8ce79f24..d5794bfd4b3 100644 --- a/source/blender/editors/mesh/editmesh.c +++ b/source/blender/editors/mesh/editmesh.c @@ -1558,7 +1558,7 @@ typedef struct UndoMesh { EditFaceC *faces; EditSelectionC *selected; int totvert, totedge, totface, totsel; - short selectmode; + int selectmode, shapenr; RetopoPaintData *retopo_paint_data; char retopo_mode; CustomData vdata, edata, fdata; @@ -1598,6 +1598,7 @@ static void *editMesh_to_undoMesh(void *emv) um= MEM_callocN(sizeof(UndoMesh), "undomesh"); um->selectmode = em->selectmode; + um->shapenr = em->shapenr; for(eve=em->verts.first; eve; eve= eve->next) um->totvert++; for(eed=em->edges.first; eed; eed= eed->next) um->totedge++; @@ -1700,6 +1701,7 @@ static void undoMesh_to_editMesh(void *umv, void *emv) memset(em, 0, sizeof(EditMesh)); em->selectmode = um->selectmode; + em->shapenr = um->shapenr; init_editmesh_fastmalloc(em, um->totvert, um->totedge, um->totface); diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 4c5fa1bea8c..7e4fc9aa9e0 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -835,6 +835,7 @@ static void rna_def_tool_settings(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "selectmode", 1); RNA_def_property_array(prop, 3); RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_editmesh_select_mode_set"); + RNA_def_property_ui_text(prop, "Mesh Selection Mode", "Which mesh elements selection works on."); RNA_def_property_update(prop, 0, "rna_Scene_editmesh_select_mode_update"); prop= RNA_def_property(srna, "vertex_group_weight", PROP_FLOAT, PROP_FACTOR); |