diff options
-rw-r--r-- | source/blender/editors/object/object_relations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index fc5f32b013d..6ff21f75733 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2117,7 +2117,7 @@ static void tag_localizable_objects(bContext *C, int mode) /* If data is also gonna to become local, mark data we're interested in * as gonna-to-be-local. */ - if (mode == MAKE_LOCAL_SELECT_OBDATA) { + if (mode == MAKE_LOCAL_SELECT_OBDATA && object->data) { ID *data_id = (ID *) object->data; data_id->flag |= LIB_DOIT; } |