From 818e19713a089ffb500201bf3e1c3d8327c75fb9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 20 Feb 2012 00:18:35 +0000 Subject: fix [#30266] B-Mesh: Issue with Weight Painting thanks to Nicholas Bishop for finding the cause of the problem. don't tesselate on load, this means me->mface will be NULL by default. we may need to have this set if existing uses of this array are not resolved before release - so add a define USE_TESSFACE_DEFAULT, to change this easily. this is a rather indirect fix - need to take care here. --- source/blender/blenloader/intern/readfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 981f9cedcfd..5d21b36710c 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3703,7 +3703,11 @@ static void lib_link_mesh(FileData *fd, Main *main) * waiting until edit mode has been entered/exited, making it easier * to recognize problems that would otherwise only show up after edits). */ +#ifdef USE_TESSFACE_DEFAULT BKE_mesh_tessface_calc(me); +#else + BKE_mesh_tessface_clear(me); +#endif me->id.flag -= LIB_NEEDLINK; } -- cgit v1.2.3