Fix: Vertex weight color calculation tried to use NULL pointer when called through...
authorMiika Hamalainen <blender@miikah.org>
Sun, 10 Mar 2013 19:10:20 +0000 (19:10 +0000)
committerMiika Hamalainen <blender@miikah.org>
Sun, 10 Mar 2013 19:10:20 +0000 (19:10 +0000)
source/blender/blenkernel/intern/DerivedMesh.c

index 2b289f1..cdcd184 100644 (file)
@@ -1035,7 +1035,7 @@ static void weightpaint_color(unsigned char r_col[4], DMWeightColorInfo *dm_wcin
 {
        float colf[4];
 
-       if (dm_wcinfo->coba) {
+       if (dm_wcinfo && dm_wcinfo->coba) {
                do_colorband(dm_wcinfo->coba, input, colf);
        }
        else {