Blender Git Commit Log

Git Commits -> Revision 4a5ae4a

Revision 4a5ae4a by Ton Roosendaal (master)
November 19, 2003, 22:00 (GMT)
Fix for undo... it didn't do the UV coords (tface) nor the vertexpaint
colors. This because of the pretty weird (ab)use of load & make editmesh...

For each added undo step, the load_editmesh was fed with an empty mesh
to assign data to, without knowledge of what was in the original mesh.
That way UV and color data got lost.

Solved it in 2 steps:

1. removing the ->tface pointer from EditVlak, and make TFace a builtin
struct inside EditVlak. This didnt cost much extra mem, since it already
stored UV and color. This enabled some pretty cleanup in editmesh.c as
well, storing tface pointers was cumbersome.
2. for each undo step, it then generates always a tface and mcol block to
link to the undo Mesh.
Even when it wasn't in the actual Mesh, at exit editmode the original
Mesh is used as reference anyway, and undo-meshes are freed correctly.

The enormous commit is because I had to change the BLI_editVert.h file, and
found it was included in about every file unnecessary. I removed it there.
ALso found out that subsurf has code ready (unfinished) to make UV coords for
the displaylist in EditMode as well, nice to know for later...

Commit Details:

Full Hash: 4a5ae4a55f7bf4f4bc4355899ec5eaaa0af32d0c
SVN Revision: 1589
Parent Commit: 4347b1a
Lines Changed: +164, -215

47 Modified Paths:

/source/blender/blenkernel/intern/subsurf.c (+3, -3) (Diff)
/source/blender/blenlib/BLI_editVert.h (+1, -3) (Diff)
/source/blender/blenlib/intern/scanfill.c (+1, -0) (Diff)
/source/blender/src/buttons_logic.c (+0, -1) (Diff)
/source/blender/src/drawimage.c (+0, -1) (Diff)
/source/blender/src/drawmesh.c (+0, -1) (Diff)
/source/blender/src/drawobject.c (+4, -3) (Diff)
/source/blender/src/drawoops.c (+0, -1) (Diff)
/source/blender/src/drawscene.c (+0, -1) (Diff)
/source/blender/src/drawseq.c (+0, -1) (Diff)
/source/blender/src/drawsound.c (+0, -1) (Diff)
/source/blender/src/drawtext.c (+0, -1) (Diff)
/source/blender/src/drawview.c (+5, -4) (Diff)
/source/blender/src/edit.c (+4, -4) (Diff)
/source/blender/src/editarmature.c (+5, -5) (Diff)
/source/blender/src/editcurve.c (+0, -1) (Diff)
/source/blender/src/editdeform.c (+3, -3) (Diff)
/source/blender/src/editfont.c (+0, -1) (Diff)
/source/blender/src/editgroup.c (+0, -1) (Diff)
/source/blender/src/editika.c (+0, -1) (Diff)
/source/blender/src/editimasel.c (+0, -1) (Diff)
/source/blender/src/editipo.c (+0, -1) (Diff)
/source/blender/src/editkey.c (+0, -1) (Diff)
/source/blender/src/editlattice.c (+0, -1) (Diff)
/source/blender/src/editmball.c (+0, -1) (Diff)
/source/blender/src/editmesh.c (+128, -146) (Diff)
/source/blender/src/editobject.c (+5, -4) (Diff)
/source/blender/src/editoops.c (+0, -1) (Diff)
/source/blender/src/editseq.c (+0, -1) (Diff)
/source/blender/src/editsima.c (+0, -1) (Diff)
/source/blender/src/editview.c (+5, -4) (Diff)
/source/blender/src/filesel.c (+0, -1) (Diff)
/source/blender/src/headerbuttons.c (+0, -1) (Diff)
/source/blender/src/imasel.c (+0, -1) (Diff)
/source/blender/src/interface.c (+0, -1) (Diff)
/source/blender/src/keyval.c (+0, -1) (Diff)
/source/blender/src/mywindow.c (+0, -1) (Diff)
/source/blender/src/oops.c (+0, -1) (Diff)
/source/blender/src/playanim.c (+0, -1) (Diff)
/source/blender/src/seqaudio.c (+0, -1) (Diff)
/source/blender/src/sequence.c (+0, -1) (Diff)
/source/blender/src/space.c (+0, -1) (Diff)
/source/blender/src/toets.c (+0, -1) (Diff)
/source/blender/src/toolbox.c (+0, -1) (Diff)
/source/blender/src/usiblender.c (+0, -1) (Diff)
/source/blender/src/view.c (+0, -1) (Diff)
/source/blender/src/vpaint.c (+0, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021