diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-04 17:34:31 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-05 11:49:50 +0300 |
commit | 7636e9785dc11fc9f11f89ba055f414e6efe43fa (patch) | |
tree | 984db57bc800523950d7f01b945f8553d0c7232f /source/blender/makesrna/intern | |
parent | 999f3985c07704f0edbe4e505172859b2e676634 (diff) |
Cleanup: BKE_library: remove 'test' param of id_copy.
This was used in *one* place only... much better to have a dedicated
helper for that kind of things. ;)
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index d287a9ba9b4..9560be60585 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -363,8 +363,10 @@ static ID *rna_ID_copy(ID *id, Main *bmain) { ID *newid; - if (id_copy(bmain, id, &newid, false)) { - if (newid) id_us_min(newid); + if (id_copy(bmain, id, &newid)) { + if (newid != NULL) { + id_us_min(newid); + } return newid; } |