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:
authorMartin Poirier <theeth@yahoo.com>2005-05-10 08:21:11 +0400
committerMartin Poirier <theeth@yahoo.com>2005-05-10 08:21:11 +0400
commitd07dccc3869943c8c24275c59917429af4eae452 (patch)
tree8488705a716557daa0bfd2a8782db29f04306b87 /source/blender/src/editmball.c
parent0c3f0556770ba1ef599400546beec62577904b35 (diff)
Found some time do sanitize the big Transform call:
- Splited off the event treatment into a fonction of its own - Splited off the initialisation phase into a function of its own (will have to do it for the manipulator function too) Calling transform now works like this: initTransform(mode, context) - possible post init calls, constraints mostly Transform() - eventually, the postTransform function, so that Transform is just a simple big loop which could in the end just be tied in the blender event system instead. - Added a state variable in TransInfo to replace the ret_val local variable. Possible values are: TRANS_RUNNING, TRANS_CANCEL, TRANS_CONFIRM - Tied MMB and the hotkey select for constraint together, so selecting an axis with MMB and pressing the axis key after that goes to local mode on that axis. Much less confusing.
Diffstat (limited to 'source/blender/src/editmball.c')
-rw-r--r--source/blender/src/editmball.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c
index 1ba62b07206..62f4a85358b 100644
--- a/source/blender/src/editmball.c
+++ b/source/blender/src/editmball.c
@@ -313,7 +313,8 @@ void adduplicate_mball()
}
BIF_TransformSetUndo("Add Duplicate");
- Transform(TFM_TRANSLATION, CTX_NO_PET);
+ initTransform(TFM_TRANSLATION, CTX_NO_PET);
+ Transform();
allqueue(REDRAWBUTSEDIT, 0);
}