Fix [#29191] Crash when switching to mask mode for texture paint
authorAndrew Wiggin <ender79bl@gmail.com>
Mon, 7 Nov 2011 15:03:53 +0000 (15:03 +0000)
committerAndrew Wiggin <ender79bl@gmail.com>
Mon, 7 Nov 2011 15:03:53 +0000 (15:03 +0000)
source/blender/blenkernel/intern/DerivedMesh.c

index b981cb372a1e8e1a4b4cfa12bc914c25eb981695..389b97557146ed57193b337ff776ee258ce47dda 100644 (file)
@@ -1719,7 +1719,7 @@ static void mesh_build_data(Scene *scene, Object *ob, CustomDataMask dataMask,
        Object *obact = scene->basact?scene->basact->object:NULL;
        int editing = paint_facesel_test(ob);
        /* weight paint and face select need original indices because of selection buffer drawing */
-       int needMapping = (ob==obact) && (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT|OB_MODE_VERTEX_PAINT)));
+       int needMapping = (ob==obact) && (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT|OB_MODE_VERTEX_PAINT|OB_MODE_TEXTURE_PAINT)));
 
        clear_mesh_caches(ob);