From 89205964b3eae9d66cbfabb619eb3ece3ad04a20 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 3 Dec 2007 23:26:45 +0000 Subject: curve proportional edit mode wasn't working with draw handles disabled (own error) --- source/blender/include/blendef.h | 4 ++-- source/blender/src/editipo.c | 14 +++++++------- source/blender/src/editview.c | 18 +++++++++--------- source/blender/src/transform_conversions.c | 18 ++++++++++++++---- 4 files changed, 32 insertions(+), 22 deletions(-) diff --git a/source/blender/include/blendef.h b/source/blender/include/blendef.h index b237a2dd601..8f9de747c2a 100644 --- a/source/blender/include/blendef.h +++ b/source/blender/include/blendef.h @@ -121,9 +121,9 @@ #define ISPOIN3(a, b, c, d) ( (a->b) && (a->c) && (a->d) ) #define ISPOIN4(a, b, c, d, e) ( (a->b) && (a->c) && (a->d) && (a->e) ) -#define BEZSELECTED(bezt) (((bezt)->f1 & 1) || ((bezt)->f2 & 1) || ((bezt)->f3 & 1)) +#define BEZSELECTED(bezt) (((bezt)->f1 & SELECT) || ((bezt)->f2 & SELECT) || ((bezt)->f3 & SELECT)) /* for curve objects in editmode that can have hidden handles - may use for IPO's later */ -#define BEZSELECTED_HIDDENHANDLES(bezt) ((G.f & G_HIDDENHANDLES) ? (bezt)->f2 & 1 : BEZSELECTED(bezt)) +#define BEZSELECTED_HIDDENHANDLES(bezt) ((G.f & G_HIDDENHANDLES) ? (bezt)->f2 & SELECT : BEZSELECTED(bezt)) /* psfont */ #define FNT_PDRAW 1 diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index 53ccb13a1d3..5698657767e 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -1318,14 +1318,14 @@ void update_editipo_flags(void) for(a=0; atotipo; a++) { if(ik->data[a]) { if(ik->flag & 1) { - ik->data[a]->f1 |= 1; - ik->data[a]->f2 |= 1; - ik->data[a]->f3 |= 1; + ik->data[a]->f1 |= SELECT; + ik->data[a]->f2 |= SELECT; + ik->data[a]->f3 |= SELECT; } else { - ik->data[a]->f1 &= ~1; - ik->data[a]->f2 &= ~1; - ik->data[a]->f3 &= ~1; + ik->data[a]->f1 &= ~SELECT; + ik->data[a]->f2 &= ~SELECT; + ik->data[a]->f3 &= ~SELECT; } } } @@ -1412,7 +1412,7 @@ static short findnearest_ipovert(IpoCurve **icu, BezTriple **bezt) } else temp= abs(mval[0]- sco[1][0])+ abs(mval[1]- sco[1][1]); - if( bezt1->f2 & 1) temp+=5; + if( bezt1->f2 & SELECT) temp+=5; if(temp