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/texture.c')
-rw-r--r--source/blender/blenkernel/intern/texture.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index 463ca250ad5..d353042b711 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -1009,8 +1009,8 @@ void BKE_texture_make_local(Tex *tex)
if (ma->mtex[a] && ma->mtex[a]->tex == tex) {
if (ma->id.lib == NULL) {
ma->mtex[a]->tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
}
@@ -1022,8 +1022,8 @@ void BKE_texture_make_local(Tex *tex)
if (la->mtex[a] && la->mtex[a]->tex == tex) {
if (la->id.lib == NULL) {
la->mtex[a]->tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
}
@@ -1035,8 +1035,8 @@ void BKE_texture_make_local(Tex *tex)
if (wrld->mtex[a] && wrld->mtex[a]->tex == tex) {
if (wrld->id.lib == NULL) {
wrld->mtex[a]->tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
}
@@ -1047,15 +1047,15 @@ void BKE_texture_make_local(Tex *tex)
if (br->mtex.tex == tex) {
if (br->id.lib == NULL) {
br->mtex.tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
if (br->mask_mtex.tex == tex) {
if (br->id.lib == NULL) {
br->mask_mtex.tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
br = br->id.next;
@@ -1066,8 +1066,8 @@ void BKE_texture_make_local(Tex *tex)
if (pa->mtex[a] && pa->mtex[a]->tex == tex) {
if (pa->id.lib == NULL) {
pa->mtex[a]->tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
}
@@ -1079,8 +1079,8 @@ void BKE_texture_make_local(Tex *tex)
if (ls->mtex[a] && ls->mtex[a]->tex == tex) {
if (ls->id.lib == NULL) {
ls->mtex[a]->tex = tex_new;
- tex_new->id.us++;
- tex->id.us--;
+ id_us_plus(&tex_new->id);
+ id_us_min(&tex->id);
}
}
}