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:
authorCampbell Barton <ideasman42@gmail.com>2013-01-20 12:05:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-20 12:05:23 +0400
commitbc44e81dfff0b185e5d6639a9b54499c20c1524a (patch)
tree1392339bedaaa6fd5bed4d3c3db74a7324065429 /source/blender/bmesh/operators/bmo_subdivide.c
parent7db7d7f21032f29ddbfb0ef3715c028551658092 (diff)
fix own bug with uninitialized arrays in subdivide (from recent BLI_array.h update)
also quiet warning.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_subdivide.c')
-rw-r--r--source/blender/bmesh/operators/bmo_subdivide.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c
index ff5fce8f5c5..c7c33aa2775 100644
--- a/source/blender/bmesh/operators/bmo_subdivide.c
+++ b/source/blender/bmesh/operators/bmo_subdivide.c
@@ -912,6 +912,10 @@ void bmo_subdivide_edges_exec(BMesh *bm, BMOperator *op)
j = BLI_array_count(facedata) - 1;
BMO_elem_flag_enable(bm, face, SUBD_SPLIT);
+
+ /* must initialize all members here */
+ facedata[j].start = NULL;
+ facedata[j].pat = NULL;
facedata[j].totedgesel = totesel;
facedata[j].face = face;
}