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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-03-22 12:41:50 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-03-22 12:41:50 +0400
commit975165341033baee59603a9648fc158ffd085d30 (patch)
tree92d7bfadff33cd074f3c89c65b5e87b70096933e /source/blender/gpu
parent7044d806399db4c24b3e9d04f64bd85951c599ba (diff)
Renaming CD_WEIGHT_MCOL/MLOOPCOL and their masks from WEIGHT to PREVIEW, as this layer is now also used for various preview tasks in Object mode.
“Cleanup” commit, no functional changes.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 57118e92d93..8698f036491 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -812,7 +812,7 @@ static void GPU_buffer_copy_uvedge(DerivedMesh *dm, float *varray, int *UNUSED(i
}
/* get the DerivedMesh's MCols; choose (in decreasing order of
- preference) from CD_ID_MCOL, CD_WEIGHT_MCOL, or CD_MCOL */
+ preference) from CD_ID_MCOL, CD_PREVIEW_MCOL, or CD_MCOL */
static MCol *gpu_buffer_color_type(DerivedMesh *dm)
{
MCol *c;
@@ -821,7 +821,7 @@ static MCol *gpu_buffer_color_type(DerivedMesh *dm)
type = CD_ID_MCOL;
c = DM_get_tessface_data_layer(dm, type);
if(!c) {
- type = CD_WEIGHT_MCOL;
+ type = CD_PREVIEW_MCOL;
c = DM_get_tessface_data_layer(dm, type);
if(!c) {
type = CD_MCOL;