fix for weight paint bug with constructive modifiers. eg. weight paint with mask...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jan 2010 15:47:19 +0000 (15:47 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jan 2010 15:47:19 +0000 (15:47 +0000)
source/blender/blenkernel/intern/DerivedMesh.c

index 28c9dfb317c4d3766d3a742f7721da3c942cd99c..72f779511027957b9beb66ca18c75cfbc36aa978 100644 (file)
@@ -2108,7 +2108,8 @@ 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);
-       int needMapping = editing && (ob==obact);
+       /* weight paint and face select need original indicies because of selection buffer drawing */
+       int needMapping = (ob==obact) && (editing || (ob->mode & OB_MODE_WEIGHT_PAINT) || paint_facesel_test(ob));
        float min[3], max[3];
        
        clear_mesh_caches(ob);