bugfix [#24685] Changing mode bypasses undo suppression
authorCampbell Barton <ideasman42@gmail.com>
Wed, 17 Nov 2010 15:16:49 +0000 (15:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 17 Nov 2010 15:16:49 +0000 (15:16 +0000)
commitc8bcabaf40c287515e69d95afa9f13ad2178af4b
tree94e930fdf28ac22aa4efcfc4e1b470643ca71f9a
parent5a37333053fb6791c222b3e375eb16214e22ddda
bugfix [#24685] Changing mode bypasses undo suppression
Editmode undo operator was using the operator OPTYPE_UNDO flag as well as its own EM_DO_UNDO option.

This gave 2 problems.
- python suppressed undos would fail (as in the report).
- Undo push was called twice on exiting editmode for no reason.

Use the operator undo in this case.
source/blender/editors/object/object_edit.c