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/blenkernel/intern/mball.c')
-rw-r--r--source/blender/blenkernel/intern/mball.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c
index bd9fd331584..1d409e9ffe8 100644
--- a/source/blender/blenkernel/intern/mball.c
+++ b/source/blender/blenkernel/intern/mball.c
@@ -71,7 +71,8 @@ void BKE_mball_unlink(MetaBall *mb)
int a;
for (a = 0; a < mb->totcol; a++) {
- if (mb->mat[a]) mb->mat[a]->id.us--;
+ if (mb->mat[a])
+ id_us_min(&mb->mat[a]->id);
mb->mat[a] = NULL;
}
}
@@ -186,8 +187,8 @@ void BKE_mball_make_local(MetaBall *mb)
if (ob->data == mb) {
if (ob->id.lib == NULL) {
ob->data = mb_new;
- mb_new->id.us++;
- mb->id.us--;
+ id_us_plus(&mb_new->id);
+ id_us_min(&mb->id);
}
}
}