bugfix [#24913] Text bevel normals wrong
authorCampbell Barton <ideasman42@gmail.com>
Thu, 2 Dec 2010 05:39:43 +0000 (05:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 2 Dec 2010 05:39:43 +0000 (05:39 +0000)
error was introduced 33269, to fix [#24834].

this only reverts a small part of that commit, added note not to change this.

source/blender/render/intern/source/convertblender.c

index 76befcaeb12c0aec8d3e700790634da38834df9e..6fec75c5e42b369e3775ce72d6bf8d7101a597d0 100644 (file)
@@ -2914,11 +2914,12 @@ static void init_render_curve(Render *re, ObjectRen *obr, int timeoffset)
 
                                                        for(; b<dl->nr; b++) {
                                                                vlr= RE_findOrAddVlak(obr, obr->totvlak++);
-                                                               vlr->v1= RE_findOrAddVert(obr, p1);
-                                                               vlr->v2= RE_findOrAddVert(obr, p2);
-                                                               vlr->v3= RE_findOrAddVert(obr, p4);
-                                                               vlr->v4= RE_findOrAddVert(obr, p3);
-                                                               vlr->ec= ME_V4V1+ME_V3V4;
+                                                               /* important 1 offset in order is kept [#24913] */
+                                                               vlr->v1= RE_findOrAddVert(obr, p2);
+                                                               vlr->v2= RE_findOrAddVert(obr, p1);
+                                                               vlr->v3= RE_findOrAddVert(obr, p3);
+                                                               vlr->v4= RE_findOrAddVert(obr, p4);
+                                                               vlr->ec= ME_V2V3+ME_V3V4;
                                                                if(a==0) vlr->ec+= ME_V1V2;
 
                                                                vlr->flag= dl->rt;