[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32193] trunk/blender/source/blender/ editors/curve/editcurve.c: fix for nurbs spin tool ( broken since being moved to 2.5x).
Campbell Barton
ideasman42 at gmail.com
Wed Sep 29 18:18:39 CEST 2010
Revision: 32193
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32193
Author: campbellbarton
Date: 2010-09-29 18:18:39 +0200 (Wed, 29 Sep 2010)
Log Message:
-----------
fix for nurbs spin tool (broken since being moved to 2.5x).
Modified Paths:
--------------
trunk/blender/source/blender/editors/curve/editcurve.c
Modified: trunk/blender/source/blender/editors/curve/editcurve.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-29 15:19:16 UTC (rev 32192)
+++ trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-29 16:18:39 UTC (rev 32193)
@@ -3973,6 +3973,9 @@
* 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 @@
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;
}
More information about the Bf-blender-cvs
mailing list