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/editcurve.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/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index e4610015e25..dd4af70c3f7 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -2795,7 +2795,8 @@ void addvert_Nurb(int mode)
if(mode=='e') {
BIF_TransformSetUndo("Extrude");
- Transform(TFM_TRANSLATION, CTX_NO_PET);
+ initTransform(TFM_TRANSLATION, CTX_NO_PET);
+ Transform();
}
else while(get_mbut()&R_MOUSE) BIF_wait_for_statechange();
@@ -2833,7 +2834,8 @@ void extrude_nurb()
makeDispList(G.obedit);
countall();
BIF_TransformSetUndo("Extrude");
- Transform(TFM_TRANSLATION, CTX_NO_PET);
+ initTransform(TFM_TRANSLATION, CTX_NO_PET);
+ Transform();
}
}
}
@@ -3062,7 +3064,8 @@ void adduplicate_nurb()
countall();
BIF_TransformSetUndo("Add Duplicate");
- Transform(TFM_TRANSLATION, CTX_NO_PET);
+ initTransform(TFM_TRANSLATION, CTX_NO_PET);
+ Transform();
}
void delNurb()