[Bf-blender-cvs] [c636c40] soc-2013-paint: Functionality Review:
Antony Riakiotakis
noreply at git.blender.org
Tue Jul 15 23:51:38 CEST 2014
Commit: c636c40299a2090e98e4dbc36db9112bd0107c83
Author: Antony Riakiotakis
Date: Wed Jul 16 00:51:29 2014 +0300
https://developer.blender.org/rBc636c40299a2090e98e4dbc36db9112bd0107c83
Functionality Review:
Fix: Rotating/Scaling a handle would not use curve center as pivot.
===================================================================
M source/blender/editors/transform/transform_conversions.c
===================================================================
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index c127d11..8e3d28e 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -7048,10 +7048,6 @@ static void PaintCurvePointToTransData(PaintCurvePoint *pcp, TransData *td, Tran
if (pcp->bez.f2 == SELECT) {
int i;
for (i = 0; i < 3; i++) {
- /* CV coords are scaled by aspects. this is needed for rotations and
- * proportional editing to be consistent with the stretched CV coords
- * that are displayed. this also means that for display and numinput,
- * and when the the CV coords are flushed, these are converted each time */
copy_v2_v2(td2d->loc, bezt->vec[i]);
td2d->loc[2] = 0.0f;
td2d->loc2d = bezt->vec[i];
@@ -7091,7 +7087,7 @@ static void PaintCurvePointToTransData(PaintCurvePoint *pcp, TransData *td, Tran
td->flag = 0;
td->loc = td2d->loc;
- copy_v3_v3(td->center, bezt->vec[id]);
+ copy_v3_v3(td->center, bezt->vec[1]);
copy_v3_v3(td->iloc, td->loc);
memset(td->axismtx, 0, sizeof(td->axismtx));
More information about the Bf-blender-cvs
mailing list