Commit: 602b2dbd8cd7930a379ea451b47fb9f8d2bc3cf2
Author: Bastien Montagne
Date: Mon Oct 24 10:06:00 2016 +0200
Branches: blender-v2.78-release
https://developer.blender.org/rB602b2dbd8cd7930a379ea451b47fb9f8d2bc3cf2
Fix mistake in BKE_mesh_new_from_object handling of materials in MetaBall case.
Typo, spoted by Coverity scan.
To be backported to 2.78a.
===================================================================
M source/blender/blenkernel/intern/mesh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh.c
b/source/blender/blenkernel/intern/mesh.c
index e106162..7b971a3 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -2389,7 +2389,7 @@ Mesh *BKE_mesh_new_from_object(
/* are we an object material or data
based? */
tmpmesh->mat[i] =
give_current_material(ob, i + 1);
- if (((ob->matbits[i] && ob->matbits) ||
do_mat_id_data_us) && tmpmesh->mat[i]) {
+ if (((ob->matbits && ob->matbits[i]) ||
do_mat_id_data_us) && tmpmesh->mat[i]) {
id_us_plus(&tmpmesh->mat[i]->id);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs