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:
-rwxr-xr-xsource/blender/src/transform.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 14a41b0a5dc..4524c7c5c88 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1026,9 +1026,6 @@ void ManipulatorTransform()
if(Trans.state == TRANS_CANCEL) {
restoreTransObjects(&Trans);
}
- else {
- BIF_undo_push(transform_to_undostr(&Trans));
- }
/* free data, reset vars */
postTrans(&Trans);
@@ -1038,6 +1035,11 @@ void ManipulatorTransform()
/* send events out for redraws */
viewRedrawPost(&Trans);
+
+ if(Trans.state != TRANS_CANCEL) {
+ BIF_undo_push(transform_to_undostr(&Trans));
+ }
+
}
/* ************************** TRANSFORMATIONS **************************** */