Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c6
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;
}