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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-09 06:40:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-09 07:19:27 +0400
commit11d98718bcfa74aea9017970be73efce8a7ac12b (patch)
tree055aa3a25fadaef4a5c53234ce8306e5ad1be497
parent1064b74196dc50bc4924e9196fdf5a872f74f6cc (diff)
Indentation fix.
-rw-r--r--source/blender/blenkernel/intern/mesh.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 7b415cff555..f0566a7f473 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -424,11 +424,12 @@ void BKE_mesh_unlink(Mesh *me)
int a;
if (me == NULL) return;
-
- if (me->mat)
- for (a = 0; a < me->totcol; a++) {
- if (me->mat[a]) me->mat[a]->id.us--;
- me->mat[a] = NULL;
+
+ if (me->mat) {
+ for (a = 0; a < me->totcol; a++) {
+ if (me->mat[a]) me->mat[a]->id.us--;
+ me->mat[a] = NULL;
+ }
}
if (me->key) {