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:
authorTon Roosendaal <ton@blender.org>2006-11-27 22:54:16 +0300
committerTon Roosendaal <ton@blender.org>2006-11-27 22:54:16 +0300
commit3bbf7624ec3dc7168abd3fa89f0501844ccbd07f (patch)
treea0e72fe7bd718894eb5fe24e9b246c73f3bbcf98 /source/blender/src/transform.c
parent84c391b4086f82843a89988398ce44c20618e1b9 (diff)
Plumiferos bugreport:
After using Manipulator on poses, the undopush was called too early, resulting in a LOCK flag to be saved in Armature. Effect was that after undo, the pose didn't show actions.
Diffstat (limited to 'source/blender/src/transform.c')
-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 **************************** */