diff options
author | Thomas Dinges <blender@dingto.org> | 2014-06-27 01:51:28 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-06-27 01:51:44 +0400 |
commit | 92ecbd2998c6324e017fecb10a5fb56b9d2f375e (patch) | |
tree | 9237f18b1e8653f684d5e6fd0f1fe5373b76ec62 /source/blender/blenkernel | |
parent | dcc6300dddbd28ce335b450cfb44b2c4affa3ed8 (diff) |
Fix T40823, crash with LoD operator without valid object.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 415606d1fdc..f72fd1f645d 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1083,6 +1083,9 @@ void BKE_object_lod_sort(Object *ob) bool BKE_object_lod_remove(Object *ob, int level) { LodLevel *rem; + + if (ob == NULL) + return false; if (level < 1 || level > BLI_countlist(&ob->lodlevels) - 1) return false; |