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:
authorCampbell Barton <ideasman42@gmail.com>2014-02-07 23:07:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-07 23:24:05 +0400
commitb3afbcab8ff2330c1473647be330a3ffe9b11885 (patch)
treee86b9c7d9676e63b8da92da79889dee13b8be186 /source/blender/blenkernel/intern/material.c
parent1c24d954f4ac63f22b703756b6664a4ad1b363d4 (diff)
ListBase API: add utility api funcs for clearing and checking empty
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 1cae95e99b3..5f6331315f8 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -245,7 +245,7 @@ Material *BKE_material_copy(Material *ma)
man->nodetree = ntreeCopyTree(ma->nodetree);
}
- man->gpumaterial.first = man->gpumaterial.last = NULL;
+ BLI_listbase_clear(&man->gpumaterial);
return man;
}
@@ -275,7 +275,7 @@ Material *localize_material(Material *ma)
if (ma->nodetree)
man->nodetree = ntreeLocalize(ma->nodetree);
- man->gpumaterial.first = man->gpumaterial.last = NULL;
+ BLI_listbase_clear(&man->gpumaterial);
return man;
}
@@ -1567,7 +1567,7 @@ void copy_matcopybuf(Material *ma)
}
matcopybuf.nodetree = ntreeCopyTree_ex(ma->nodetree, FALSE);
matcopybuf.preview = NULL;
- matcopybuf.gpumaterial.first = matcopybuf.gpumaterial.last = NULL;
+ BLI_listbase_clear(&matcopybuf.gpumaterial);
matcopied = 1;
}