From 07f004620397fd818d2684d08ff67422d76a92cf Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 4 Jun 2018 15:11:09 +0200 Subject: Fix crash when making objects to share same mesh Make it more reliable and predictable way of getting pointer to an original mesh which came from copy-on-write engine. Related change: made it (hopefully) more clear name for flags. --- source/blender/depsgraph/intern/depsgraph_query.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/depsgraph/intern/depsgraph_query.cc') diff --git a/source/blender/depsgraph/intern/depsgraph_query.cc b/source/blender/depsgraph/intern/depsgraph_query.cc index 06fbe980620..ca9f32d4d8c 100644 --- a/source/blender/depsgraph/intern/depsgraph_query.cc +++ b/source/blender/depsgraph/intern/depsgraph_query.cc @@ -240,6 +240,6 @@ ID *DEG_get_original_id(ID *id) if (id->orig_id == NULL) { return id; } - BLI_assert((id->tag & LIB_TAG_COPY_ON_WRITE) != 0); + BLI_assert((id->tag & LIB_TAG_COPIED_ON_WRITE) != 0); return (ID *)id->orig_id; } -- cgit v1.2.3