Blender Git Commit Log

Git Commits -> Revision 08169d7

Revision 08169d7 by Alexander Ewering (master)
June 25, 2005, 22:51 (GMT)


The overlapping curves/material indices problem got a bit out of control.

- For avoiding the 'overlapping character problem' in Text objects, I had
changed the sorting code for filling nurbs to use nu->charidx (a new
variable incremented with each new character) instead of nu->mat_nr
(which used to work for material indices inside a 2D Curve).

- This broke material indices in normal 2D Curves completely, thus:

- nu->charidx is now not only used for seperating
characters in text objects for filling, but also for normal 2D curves
when they contain material indices. In fact, charidx is just set to
the material index.

- There's compatibility code in readfile.c that sets nu->charidx to nu->mat_nr
when reading curves from files that are not text objects

- So, the big conclusion: Instead of using material indices for creating
'filling groups', filldisplist() now uses nu->charidx, which is set
appropriately when reading old files and assigning/deleting material
indices in curves.

- This is all pretty obscure and hard to explain. If I haven't been clear,
ask.

- If it breaks anything, complain!

Commit Details:

Full Hash: 08169d7fbaedd09bec2966c89427dfaa4fd1e78b
SVN Revision: 4632
Parent Commit: da76fc6
Lines Changed: +9, -5

5 Modified Paths:

/source/blender/blenkernel/intern/font.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+4, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/src/buttons_editing.c (+1, -1) (Diff)
/source/blender/src/editfont.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021