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>2010-07-24 06:27:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-24 06:27:43 +0400
commit1fdb880cf4d746d8e4a1b6372c5b7e2c13025ff2 (patch)
tree91cae7fc75c2b58974d49d7728b4b68b074e141e /source/blender/editors
parentf148aa696ef069fb58c4b817ee980d36449a0e85 (diff)
bugfix [#22990] Crash rendering joined curves
- dont render invalid material indicies (like mesh faces) - clamp the material index values when joining, TODO: merge material lists properly.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/curve/editcurve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index 659ee7b9cea..c33565cee4b 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -4843,6 +4843,7 @@ int join_curve_exec(bContext *C, wmOperator *op)
nu= cu->nurb.first;
while(nu) {
newnu= duplicateNurb(nu);
+ CLAMP(newnu->mat_nr, 0, ob->totcol-1); /* TODO, merge material lists */
BLI_addtail(&tempbase, newnu);
if( (bezt= newnu->bezt) ) {