diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-06 12:48:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-06 12:50:56 +0300 |
commit | b7d7bbfc488c37c110c00baf51d58eb12f8b2efb (patch) | |
tree | 98d71aa7c1aa0ac4c2081b864a9451933752c48c /source/blender/editors/mesh/editmesh_extrude.c | |
parent | 466125f3d6325204711ecbcc39db2827b928e4a9 (diff) |
Fix extrude glitch where undo state was visible
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c index 85472b7a0aa..3d19ee8c241 100644 --- a/source/blender/editors/mesh/editmesh_extrude.c +++ b/source/blender/editors/mesh/editmesh_extrude.c @@ -451,11 +451,18 @@ static void manipulator_mesh_extrude_refresh(const bContext *C, wmManipulatorGro wmOperator *op_transform = op->macro.last; wmManipulatorOpElem *mpop = WM_manipulator_operator_get(man->axis_redo, 0); + PointerRNA macroptr = RNA_pointer_get(&mpop->ptr, "TRANSFORM_OT_translate"); + float value[4]; RNA_float_get_array(op_transform->ptr, "value", value); - - PointerRNA macroptr = RNA_pointer_get(&mpop->ptr, "TRANSFORM_OT_translate"); RNA_float_set_array(¯optr, "value", value); + + /* Currently has glitch in re-applying. */ +#if 0 + int constraint_axis[3]; + RNA_boolean_get_array(op_transform->ptr, "constraint_axis", constraint_axis); + RNA_boolean_set_array(¯optr, "constraint_axis", constraint_axis); +#endif } } |