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:
authorCampbell Barton <ideasman42@gmail.com>2008-10-06 10:10:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-10-06 10:10:14 +0400
commit6c2738ef48bdc7d535d858293a635a29b7269cf3 (patch)
tree58b3099e13910e29a105737f2fe4a66f2a7cace1 /source/blender/python
parent002725d72afd2143437fde556b292e9b427640b2 (diff)
fix for own bugs in curves.
- the number of segments was always 1 too many on cyclic curves. - [#17739] - normals were not being calculated when rendering curves. Replaced macro DL_SURFINDEX with a function. it that assumes variable names and could break from the loop that called it.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/NMesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index 28407f174da..2e82c55155f 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -2158,8 +2158,8 @@ static PyObject *new_NMesh_displist(ListBase *lb, Object *ob)
for(a=0; a<dl->parts; a++) {
- DL_SURFINDEX(dl->flag & DL_CYCL_U, dl->flag & DL_CYCL_V, dl->nr, dl->parts);
-
+ if (surfindex_displist(dl, a, &b, &p1, &p2, &p3, &p4)==0)
+ break;
for(; b<dl->nr; b++) {
vidx[0] = p2 + ioffset;