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:
authorDalai Felinto <dfelinto@gmail.com>2010-01-16 07:18:21 +0300
committerDalai Felinto <dfelinto@gmail.com>2010-01-16 07:18:21 +0300
commita33e12c184162c4daf2d3363c847619609c813ed (patch)
treeb5f0b8f01ef0ac20fc65279a3f31b912d7e8a2c9 /source/blender/editors/mesh
parent13295aec305ecf2d293c0f15b79b24bf7261f3ad (diff)
Fix: MESH_OT_DELETE wasn't working since rev. 26027, MESH_OT_select_by_number_vertices neither
for the MESH_OT_select_... ENUM text fix (s/Triangles/Quads) and invoke added (WM_menu_invoke).
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_mods.c5
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c
index d73ce1a1214..fc1e677b174 100644
--- a/source/blender/editors/mesh/editmesh_mods.c
+++ b/source/blender/editors/mesh/editmesh_mods.c
@@ -2859,7 +2859,7 @@ void MESH_OT_select_by_number_vertices(wmOperatorType *ot)
{
static const EnumPropertyItem type_items[]= {
{3, "TRIANGLES", 0, "Triangles", NULL},
- {4, "QUADS", 0, "Triangles", NULL},
+ {4, "QUADS", 0, "Quads", NULL},
{5, "OTHER", 0, "Other", NULL},
{0, NULL, 0, NULL, NULL}};
@@ -2870,13 +2870,14 @@ void MESH_OT_select_by_number_vertices(wmOperatorType *ot)
/* api callbacks */
ot->exec= select_by_number_vertices_exec;
+ ot->invoke= WM_menu_invoke;
ot->poll= ED_operator_editmesh;
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* props */
- RNA_def_enum(ot->srna, "type", type_items, 3, "Type", "Type of elements to select.");
+ ot->prop= RNA_def_enum(ot->srna, "type", type_items, 3, "Type", "Type of elements to select.");
}
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 92b4800ccfd..db04dfa19fe 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -1326,7 +1326,7 @@ void MESH_OT_delete(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/*props */
- RNA_def_enum(ot->srna, "type", prop_mesh_delete_types, 10, "Type", "Method used for deleting mesh data");
+ ot->prop= RNA_def_enum(ot->srna, "type", prop_mesh_delete_types, 10, "Type", "Method used for deleting mesh data");
}