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:
authorAntony Riakiotakis <kalast@gmail.com>2014-07-16 01:51:29 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-07-16 01:51:29 +0400
commitc636c40299a2090e98e4dbc36db9112bd0107c83 (patch)
tree86bf028efcd948b285dd23cc6d92384ce3894388
parentf8f7dc6d6d2894accfe4a3026476f2a678be7515 (diff)
Functionality Review:
Fix: Rotating/Scaling a handle would not use curve center as pivot.
-rw-r--r--source/blender/editors/transform/transform_conversions.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index c127d1125b3..8e3d28e78c4 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));