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:
authorTon Roosendaal <ton@blender.org>2006-04-09 22:31:20 +0400
committerTon Roosendaal <ton@blender.org>2006-04-09 22:31:20 +0400
commit13cd984f6c38d86014b6333b545eb1da29263d60 (patch)
tree3265e8fe1fa2851df12159700f4814ad61c9b913
parentcbb48709ebb55c6cc5068d04158817f07d9153d9 (diff)
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.
-rw-r--r--source/blender/src/editconstraint.c6
1 files changed, 5 insertions, 1 deletions
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);