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>2021-03-24 04:38:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-24 04:38:08 +0300
commit3f47df577d05478a324b6eca80df0a33c838fab8 (patch)
treea404eb3500fb33132a5240f05cd48aa860c7d12b /source/blender/blenkernel/intern/object.c
parent3ea1779365b577766a3d14a662f5cbd3bc81db53 (diff)
Cleanup: use new BLI_assert_unreachable macro
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r--source/blender/blenkernel/intern/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 00e99f193a2..b07c4b22c39 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1858,7 +1858,7 @@ bool BKE_object_data_is_in_editmode(const ID *id)
case ID_AR:
return ((const bArmature *)id)->edbo != NULL;
default:
- BLI_assert(0);
+ BLI_assert_unreachable();
return false;
}
}
@@ -1905,7 +1905,7 @@ char *BKE_object_data_editmode_flush_ptr_get(struct ID *id)
return &arm->needs_flush_to_id;
}
default:
- BLI_assert(0);
+ BLI_assert_unreachable();
return NULL;
}
return NULL;