From 5f4caa8c4fc393e6519b810fc095b4c339266251 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 5 Sep 2019 20:43:52 +0200 Subject: LibOverride: add a generic macro to check whetehr an ID is overridable. ...and use it in code generating library overrides. --- source/blender/makesrna/intern/rna_ID.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_ID.c') diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 294fdb2e0d8..49fdf9c67d5 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -493,7 +493,7 @@ static ID *rna_ID_copy(ID *id, Main *bmain) static ID *rna_ID_override_create(ID *id, Main *bmain, bool remap_local_usages) { - if (!BKE_override_library_is_enabled() || id->lib == NULL) { + if (!BKE_override_library_is_enabled() || !ID_IS_OVERRIDABLE_LIBRARY(id)) { return NULL; } -- cgit v1.2.3