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:
authorJoshua Leung <aligorith@gmail.com>2009-11-13 04:26:13 +0300
committerJoshua Leung <aligorith@gmail.com>2009-11-13 04:26:13 +0300
commit206563241c11417bf019aac47e776c1fe7754700 (patch)
treebc4ebee3b33cb46de3496f846e03398d6099e33c /source/blender/editors/mesh/mesh_ops.c
parentacd7225deaad3e0dcfaf14dd1328dd292bd592f0 (diff)
Bugfix #19871: Extrude does not extrude on normal anymore
Just moving some old commented-out code over from the invoke() callback for extrude to the macro operator.
Diffstat (limited to 'source/blender/editors/mesh/mesh_ops.c')
-rw-r--r--source/blender/editors/mesh/mesh_ops.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c
index ffa9dde4493..5949decc49d 100644
--- a/source/blender/editors/mesh/mesh_ops.c
+++ b/source/blender/editors/mesh/mesh_ops.c
@@ -157,6 +157,7 @@ void ED_operatormacros_mesh(void)
{
wmOperatorType *ot;
wmOperatorTypeMacro *otmacro;
+ int constraint_axis[3] = {0, 0, 1};
/*combining operators with invoke and exec portions doesn't work yet.
@@ -168,17 +169,19 @@ void ED_operatormacros_mesh(void)
ot= WM_operatortype_append_macro("MESH_OT_duplicate_move", "Add Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
WM_operatortype_macro_define(ot, "MESH_OT_duplicate");
otmacro= WM_operatortype_macro_define(ot, "TFM_OT_translate");
- RNA_enum_set(otmacro->ptr, "proportional", 0);
+ RNA_enum_set(otmacro->ptr, "proportional", 0);
ot= WM_operatortype_append_macro("MESH_OT_rip_move", "Rip", OPTYPE_UNDO|OPTYPE_REGISTER);
WM_operatortype_macro_define(ot, "MESH_OT_rip");
otmacro= WM_operatortype_macro_define(ot, "TFM_OT_translate");
- RNA_enum_set(otmacro->ptr, "proportional", 0);
+ RNA_enum_set(otmacro->ptr, "proportional", 0);
ot= WM_operatortype_append_macro("MESH_OT_extrude_move", "Extrude", OPTYPE_UNDO|OPTYPE_REGISTER);
WM_operatortype_macro_define(ot, "MESH_OT_extrude");
otmacro= WM_operatortype_macro_define(ot, "TFM_OT_translate");
- RNA_enum_set(otmacro->ptr, "proportional", 0);
+ RNA_enum_set(otmacro->ptr, "proportional", 0);
+ RNA_enum_set(otmacro->ptr, "constraint_orientation", V3D_MANIP_NORMAL);
+ RNA_boolean_set_array(otmacro->ptr, "constraint_axis", constraint_axis);
}
/* note mesh keymap also for other space? */