diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-20 04:18:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-20 04:18:35 +0400 |
commit | 818e19713a089ffb500201bf3e1c3d8327c75fb9 (patch) | |
tree | e8f9ca03165d6fd7599bb6844a099cfe485ac7dc /source/blender/blenloader | |
parent | 40c59b1a3d8497dd77601971aac73d9db9cee187 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |