diff options
author | Joseph Eagar <joeedh@gmail.com> | 2011-03-28 04:29:45 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2011-03-28 04:29:45 +0400 |
commit | 3875461a3349722fcb7c31e444a9c76c02ae314d (patch) | |
tree | 6d7eb69342072f9e6b566d2a1fb44538cb5bf566 /source/blender/blenkernel | |
parent | fc050837b00a0b24f83900402c04211eaa70693a (diff) |
=bmesh=
Improved edge subdivide. The last tool panel
is a bit clearer, with a "quad/tri" checkbox
(that, in addition to turning on the old
singe-edge-triangluation feature also
automatically switches cornervert to Inner Vert
if it is Straight, to avoid producing ngons).
I also rewrote fractal to be more likes its name, and
removed the "smoothness" parameter (which never
worked, anyway, even in trunk). Also removed the
grid fill paramter, it wasn't all that useful.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index 346fb5dd85d..e40275121ae 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1450,8 +1450,9 @@ static CustomDataLayer *customData_add_layer__internal(CustomData *data, int size = typeInfo->size * totelem, flag = 0, index = data->totlayer; void *newlayerdata; - if (!typeInfo->defaultname && CustomData_has_layer(data, type)) + if (!typeInfo->defaultname && CustomData_has_layer(data, type)) { return &data->layers[CustomData_get_layer_index(data, type)]; + } if((alloctype == CD_ASSIGN) || (alloctype == CD_REFERENCE)) { newlayerdata = layerdata; |