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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-11-25 23:17:24 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-11-26 01:02:13 +0400
commitcc55913798aecbdeb3fc6e49c16a26ccbddebd9b (patch)
tree588bffc09b32253a2a5a12b513dc3b5180cfe40c /source/blender/blenkernel/intern/mesh.c
parenta5c7b9202b8451097ba6acf6e3f19bc5cdf091fd (diff)
Fix T37225: UV map for closed curves incorrectly generated
Summary: Curve ORCO was not calculating properly for cyclic 2D curves. - Needed to split vertices for blender internal renderer. Otherwise it's not possible to map last face to a proper texture location. - Needed to tweak curve->mesh conversion to respect cyclic flag along U direction. - Removed check for orcodm in curve.c:add_orco_dm since this code is only called if there're enabled constructive modifiers on the curve. Reviewers: brecht Maniphest Tasks: T37225 Differential Revision: http://developer.blender.org/D45
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index e6fca21f2af..ee25b0a72df 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -1342,6 +1342,9 @@ int BKE_mesh_nurbs_displist_to_mdata(Object *ob, ListBase *dispbase,
if (dl->flag & DL_CYCL_V)
orco_sizev++;
}
+ else if (dl->flag & DL_CYCL_V) {
+ orco_sizev++;
+ }
for (i = 0; i < 4; i++, mloopuv++) {
/* find uv based on vertex index into grid array */