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:
authorMartin Poirier <theeth@yahoo.com>2003-12-02 03:04:38 +0300
committerMartin Poirier <theeth@yahoo.com>2003-12-02 03:04:38 +0300
commit4930270ea7be40410047dd59aa29fd3b36c6e17b (patch)
treea9a7ae60b654f1dbdad69e80832a886fc5f0b9b6 /source/blender/blenkernel
parentffabbbea8d8b1ce4eb0a435dc3036371c3af8b87 (diff)
Fixed FollowPath flag annoyance
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/constraint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 9e9a0c51405..211cbb2cd56 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -587,6 +587,7 @@ short get_constraint_target (bConstraint *con, short ownertype, void* ownerdata,
data = (bFollowPathConstraint*)con->data;
if (data->tar){
+ short OldFlag;
Curve *cu;
float q[4], vec[4], dir[3], *quat, x1, totmat[4][4];
float curvetime;
@@ -596,6 +597,7 @@ short get_constraint_target (bConstraint *con, short ownertype, void* ownerdata,
Mat4One (totmat);
cu= data->tar->data;
+ OldFlag = cu->flag;
if(data->followflag) {
if(!(cu->flag & CU_FOLLOW)) cu->flag += CU_FOLLOW;
@@ -636,6 +638,7 @@ short get_constraint_target (bConstraint *con, short ownertype, void* ownerdata,
Mat4MulSerie(mat, data->tar->obmat, totmat, NULL, NULL, NULL, NULL, NULL, NULL);
}
+ cu->flag = OldFlag;
valid=1;
}
else