diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-12 09:54:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-12 09:54:33 +0400 |
commit | 7b707fff56209d8997a2d52dde6f38e67be56c31 (patch) | |
tree | 748df8091f8c8f32634f3ff17f44e10ac58fc260 /source/blender/blenkernel/intern/fcurve.c | |
parent | b6345616a7a450c88d3e0eed4f953fbcc225597e (diff) |
correct assert for driver evaluation,
also add asserts for listbase functions when the list is NULL, and use noreturn attribute for jpeg_error.
Diffstat (limited to 'source/blender/blenkernel/intern/fcurve.c')
-rw-r--r-- | source/blender/blenkernel/intern/fcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c index c86ee11985a..8d3d503a33c 100644 --- a/source/blender/blenkernel/intern/fcurve.c +++ b/source/blender/blenkernel/intern/fcurve.c @@ -1248,7 +1248,7 @@ static float dvar_eval_locDiff(ChannelDriver *driver, DriverVar *dvar) float tmp_loc[3]; /* after the checks above, the targets should be valid here... */ - BLI_assert((ob != NULL) && (GS(ob->id.name) != ID_OB)); + BLI_assert((ob != NULL) && (GS(ob->id.name) == ID_OB)); /* try to get posechannel */ pchan = BKE_pose_channel_find_name(ob->pose, dtar->pchan_name); |