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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-09-19 12:08:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-23 17:02:22 +0300
commitc08896e2c40d57c4a5bde224ec67609b80647174 (patch)
tree547463ceee9c06bdb9db2baf4fc221b8b1cf2a5f
parentaabb8db753bab618a3ecc5685acd1486cc13bd56 (diff)
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.
-rw-r--r--source/blender/editors/transform/transform_conversions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 3a8fa2a6ca7..c12418f1a0f 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);
}