Blender Git Loki

Git Commits -> Revision ee7ae2c

Revision ee7ae2c by Bastien Montagne (master)
July 13, 2012, 20:50 (GMT)
Fix [#32013] Crash loading a 2.49b model

Problems were in the old multires loading system.

Actually, the sigsev itself was the easy part of the job (simply had to convert from tesselated data to polys/loops), but after that I was getting a horrible bunch of wild stray faces...

It finally turned out it was a mismatch in two different subsurf structs used while computing a mdisps layer from the multires DM, leading to getting complete random normals (null ones, NAN ones...), leading to complete dummy tangent space matrix, leading to absurds mdisps values...

Note: I also moved the copy of first layer's vertex and face data from old me->mr to mesh's v/fdata earlier in multire_load_old(), to be able to use general face_to_poly conversion function (later on we would have to do it by hand, the general function would erase our newly computed mdisps layer...).

Took me the whole week (something like 20h) to track this down: multires + subsurf = C nightmare!

Commit Details:

Full Hash: ee7ae2cdbb24072707d74534a560133f9780b079
SVN Revision: 48897
Parent Commit: 807ad1f
Lines Changed: +25, -13

1 Modified Path:

/source/blender/blenkernel/intern/multires.c (+25, -13) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021