diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-05 21:43:52 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-05 22:31:01 +0300 |
commit | 5f4caa8c4fc393e6519b810fc095b4c339266251 (patch) | |
tree | 76c0db78a2f196f5b0f92ba507ac38fd3055d0d8 /source/blender/makesrna/intern/rna_ID.c | |
parent | 8622849beb964536d39ca2da8a2a0e4db978502f (diff) |
LibOverride: add a generic macro to check whetehr an ID is overridable.
...and use it in code generating library overrides.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |