Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2005-11-30 02:38:40 +0300
committerKen Hughes <khughes@pacific.edu>2005-11-30 02:38:40 +0300
commit00f43109705ab7f251e4487143049205e27e38f1 (patch)
tree014b0a21cb2789e11b3233fd7df75935d319ee13 /source/blender/python/api2_2x/NMesh.c
parentadb2d5d88a2fce83c3fcee66b0be72c9590e0dd4 (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/python/api2_2x/NMesh.c')
-rw-r--r--source/blender/python/api2_2x/NMesh.c3
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();