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:
authorCampbell Barton <ideasman42@gmail.com>2010-09-29 20:18:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-29 20:18:39 +0400
commit36c756e754742bede9a33ad0fca7c46adc6e56c2 (patch)
treeda212fc08993827cc55095a4ba36777339822304 /source/blender
parenta2f966b8ee5352f4da9dcd5211872fe1022f98b3 (diff)
fix for nurbs spin tool (broken since being moved to 2.5x).
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/curve/editcurve.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index fed2fd1e55d..bd63862a73e 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -3973,6 +3973,9 @@ int mouse_nurb(bContext *C, short mval[2], int extend)
* orientation of the global 3d view (yuck yuck!) mode==1 does the same, but doesn't bridge up
* up the new geometry, mode==2 now does the same as 0, but aligned to world axes, not the view.
*/
+
+/* 'cent' is in object space and 'dvec' in worldspace.
+ */
static int spin_nurb(RegionView3D *rv3d, Object *obedit, float *dvec, float *cent, short mode)
{
Curve *cu= (Curve*)obedit->data;
@@ -4081,9 +4084,8 @@ static int spin_exec(bContext *C, wmOperator *op)
invert_m4_m4(obedit->imat, obedit->obmat);
mul_m4_v3(obedit->imat, cent);
- mul_mat3_m4_v3(obedit->imat, axis);
- if(!spin_nurb(ED_view3d_context_rv3d(C), obedit, axis, cent, 2)) {
+ if(!spin_nurb(ED_view3d_context_rv3d(C), obedit, axis, cent, 0)) {
BKE_report(op->reports, RPT_ERROR, "Can't spin");
return OPERATOR_CANCELLED;
}