From 94ec80d21cc437c56dde8b8ff04a852810656eb7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 5 Sep 2018 15:56:50 +0200 Subject: CCG: Remove number of layers from key The issue there was that number of layers did not include normals, while element size counts bytes used by normals. This sounds very fragile and dangerous to work further. Also, one value can easily be delivered from another, so it is redundancy going on here. Possible difference now is that multires subdivision will copy normals to a higher levels. Shouldn't be big of a problem, since leaving old normals and updating coordinates is not correct either. --- source/blender/blenkernel/intern/CCGSubSurf.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/blenkernel/intern/CCGSubSurf.c') diff --git a/source/blender/blenkernel/intern/CCGSubSurf.c b/source/blender/blenkernel/intern/CCGSubSurf.c index c6224da2fe0..40dea6ca663 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf.c +++ b/source/blender/blenkernel/intern/CCGSubSurf.c @@ -1553,7 +1553,6 @@ void CCG_key(CCGKey *key, const CCGSubSurf *ss, int level) key->elem_size = ss->meshIFC.vertDataSize; key->has_normals = ss->calcVertNormals; - key->num_layers = ss->meshIFC.numLayers; /* if normals are present, always the last three floats of an * element */ -- cgit v1.2.3