From 13cd984f6c38d86014b6333b545eb1da29263d60 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 9 Apr 2006 18:31:20 +0000 Subject: [PATCH] Bugfix #3781 Using the new "Add constraint" hotkey (CTRL+ALT+C) or the option in the pulldown menu, didn't set a proper flag in Curve object when a "Follow Path" constraint was choosen. --- source/blender/src/editconstraint.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c index b3f2ac07c0b..be35acfde69 100644 --- a/source/blender/src/editconstraint.c +++ b/source/blender/src/editconstraint.c @@ -711,7 +711,11 @@ void add_constraint(int only_IK) else if(nr==3) con = add_new_constraint(CONSTRAINT_TYPE_TRACKTO); else if(nr==4) con = add_new_constraint(CONSTRAINT_TYPE_MINMAX); else if(nr==5) con = add_new_constraint(CONSTRAINT_TYPE_LOCKTRACK); - else if(nr==6) con = add_new_constraint(CONSTRAINT_TYPE_FOLLOWPATH); + else if(nr==6) { + Curve *cu= obsel->data; + cu->flag |= CU_PATH; + con = add_new_constraint(CONSTRAINT_TYPE_FOLLOWPATH); + } else if(nr==7) con = add_new_constraint(CONSTRAINT_TYPE_STRETCHTO); else if(nr==8) con = add_new_constraint(CONSTRAINT_TYPE_SIZELIKE);