Merge with trunk r41342
[blender-staging.git] / source / blender / modifiers / intern / MOD_uvproject.c
index 36d773ad605548fc31ef3662b898ff64ebb2b172..cf5856b6339901673f846d0fcfde2b3b1b636f6e 100644 (file)
@@ -173,7 +173,7 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
        if(!CustomData_has_layer(&dm->faceData, CD_MTFACE)) return dm;
 
        /* make sure we're using an existing layer */
-       validate_layer_name(&dm->faceData, CD_MTFACE, umd->uvlayer_name, uvname);
+       CustomData_validate_layer_name(&dm->faceData, CD_MTFACE, umd->uvlayer_name, uvname);
 
        /* calculate a projection matrix and normal for each projector */
        for(i = 0; i < num_projectors; ++i) {