diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 02:03:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 02:03:15 +0400 |
commit | 8052bf0ec23e6e49300b461cad8bdbc2474852ab (patch) | |
tree | 573b51ff41a115936b8767699c2bdabbf173bc5c /source/blender/blenloader | |
parent | 6e940a15cb265710310897f9885b92273878cd64 (diff) |
add missing NULL checks from BKE_constraint_get_typeinfo(), so constraints from the future dont crash.
also remove some redundant NULL checks.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 72b426a155a..80a09b4701c 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8174,12 +8174,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) for (ob = main->object.first; ob; ob = ob->id.next) { bConstraint *con; for (con = ob->constraints.first; con; con = con->next) { - bConstraintTypeInfo *cti = BKE_constraint_get_typeinfo(con); - - if (!cti) - continue; - - if (cti->type == CONSTRAINT_TYPE_OBJECTSOLVER) { + if (con->type == CONSTRAINT_TYPE_OBJECTSOLVER) { bObjectSolverConstraint *data = (bObjectSolverConstraint *)con->data; if (data->invmat[3][3] == 0.0f) |