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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
commit40f45a7eac620fd8b99b3f29f3d0cac3c855dc84 (patch)
treeb42ed461143b7347d86cefe40d051d0585f460e8 /source/blender/blenkernel
parent0f5b53ba4dc03f89b43a633f73a59594e709ab11 (diff)
Cleanup: redundant NULL checks
Also use unsigned shifting for values not in int range.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/rigidbody.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 9ba3593f6b8..919a0c5fa02 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -148,7 +148,7 @@ void BKE_rigidbody_free_world(Scene *scene)
void BKE_rigidbody_free_object(Object *ob, RigidBodyWorld *rbw)
{
bool is_orig = (ob->id.tag & LIB_TAG_COPIED_ON_WRITE) == 0;
- RigidBodyOb *rbo = (ob) ? ob->rigidbody_object : NULL;
+ RigidBodyOb *rbo = ob->rigidbody_object;
/* sanity check */
if (rbo == NULL)