diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-11-30 02:38:40 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-11-30 02:38:40 +0300 |
commit | 00f43109705ab7f251e4487143049205e27e38f1 (patch) | |
tree | 014b0a21cb2789e11b3233fd7df75935d319ee13 /source/blender | |
parent | adb2d5d88a2fce83c3fcee66b0be72c9590e0dd4 (diff) |
-- Bugfix #2868: NMesh.update(0,0,1) with derived mesh data would cause a
crash. Hopefully the NMesh module will die a silent death before we
discovere this doesn't really fix the problem :-)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index e842b01eb82..a614dbaa3d4 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -1373,6 +1373,9 @@ static PyObject *NMesh_update( PyObject *self, PyObject *a, PyObject *kwd ) } base = base->next; } + + /* recalculate the derived mesh before trying to use it */ + makeDispListMesh (nmesh->object); make_vertexcol(); countall(); |