Fix projection texture painting crash
[blender-staging.git] / source / blender / editors / mesh / editmesh_tools.c
index a34ae23df24819abfbe721c4a01c1d5987d0d084..3e8219bfd1c5699cf70cee8661c837fd0a15a5c6 100644 (file)
@@ -4602,7 +4602,7 @@ static int edbm_noise_exec(bContext *C, wmOperator *op)
                BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) {
                        if (BM_elem_flag_test(eve, BM_ELEM_SELECT)) {
                                float tin, dum;
-                               externtex(ma->mtex[0], eve->co, &tin, &dum, &dum, &dum, &dum, 0);
+                               externtex(ma->mtex[0], eve->co, &tin, &dum, &dum, &dum, &dum, 0, NULL);
                                eve->co[2] += fac * tin;
                        }
                }