[Bf-blender-cvs] [cfc109e] master: Fix T46161: Rotate around selection changes bezier curve handle type.

Bastien Montagne noreply at git.blender.org
Sat Sep 19 11:11:39 CEST 2015


Commit: cfc109eb928951b402eb759350a7588290e614b9
Author: Bastien Montagne
Date:   Sat Sep 19 11:08:21 2015 +0200
Branches: master
https://developer.blender.org/rBcfc109eb928951b402eb759350a7588290e614b9

Fix T46161: Rotate around selection changes bezier curve handle type.

Issue is, when 'Rotate Aroud Selection' is set, in Edit mode we do a fake transform operation
to get center point around which to rotate. For curves, most transform operations involve
a check of handle types. For now, added 'TFM_DUMMY' as an exception here.

Think it would be best to actually undo those changes in case of cancelled operation,
but this is much more involved, while this fix is safe enough to be included in final 2.76.

===================================================================

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 3a8fa2a..c12418f 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1661,7 +1661,7 @@ static void createTransCurveVerts(TransInfo *t)
 
 			/* TODO - in the case of tilt and radius we can also avoid allocating the initTransDataCurveHandles
 			 * but for now just don't change handle types */
-			if (ELEM(t->mode, TFM_CURVE_SHRINKFATTEN, TFM_TILT) == 0) {
+			if (ELEM(t->mode, TFM_CURVE_SHRINKFATTEN, TFM_TILT, TFM_DUMMY) == 0) {
 				/* sets the handles based on their selection, do this after the data is copied to the TransData */
 				BKE_nurb_handles_test(nu, !hide_handles);
 			}




More information about the Bf-blender-cvs mailing list