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-05-18 02:37:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-18 02:37:34 +0400
commitd3f7fba472cd83940a1374a9e0df79922599369d (patch)
tree6c904e09f6a8d2a768534face0b512df314a165c /source/blender/blenkernel/intern/displist.c
parent81dee8e1dd52734c7d9a3fc9290a52b9201a1b4e (diff)
fix for [#11691] No checks in curve code for "Number of points <= Order U"
added checks for a nurbes orderu being larger then pntsu. This has the same effect as the curve having only 1 point. (its display list is not generated but it is still added but a dummy displist with zero points is made) memcpy was also being used where the memory overlaped (probably worked in most cases but this is incorrect and valgrind complained), use memmove instead.
Diffstat (limited to 'source/blender/blenkernel/intern/displist.c')
-rw-r--r--source/blender/blenkernel/intern/displist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c
index 6f5660b2a3f..3e7dd113956 100644
--- a/source/blender/blenkernel/intern/displist.c
+++ b/source/blender/blenkernel/intern/displist.c
@@ -783,7 +783,7 @@ static void curve_to_displist(Curve *cu, ListBase *nubase, ListBase *dispbase)
else
resolu= nu->resolu;
- if(nu->pntsu<2);
+ if(nu->pntsu<2 || ((nu->type & 7)==CU_NURBS && nu->pntsu < nu->orderu));
else if((nu->type & 7)==CU_BEZIER) {
/* count */