diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-19 18:20:18 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-19 18:20:18 +0300 |
commit | ffd7fc9005f016d6e13cbbbc33f912b741e854e9 (patch) | |
tree | 23bd528f53bb2db06cf81dfdb054d07f0a0e4fc8 /source/blender/blenloader | |
parent | ab9e6f69a0b29517d4e5f8aa439c184656e29dda (diff) |
- fixed reported bug with constraints... somehow someone managed to save
a follow-path constraint in 2.28c without data assigned.
this patch checks for proper data in a constraint, if not available
it will turn the type into CONSTRAINT_TYPE_NULL
- i will forward the demo file to theeth for further check
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b4172a0d49d..72f8c6552ca 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1195,8 +1195,13 @@ static void lib_link_constraint_channels(FileData *fd, ID *id, ListBase *chanbas static void lib_link_constraints(FileData *fd, ID *id, ListBase *conlist) { bConstraint *con; - + for (con = conlist->first; con; con=con->next) { + /* patch for error introduced by changing constraints (dunno how) */ + if(con->data==NULL) { + con->type= CONSTRAINT_TYPE_NULL; + } + switch (con->type) { case CONSTRAINT_TYPE_ACTION: { |