diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-20 01:00:14 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-20 01:00:14 +0300 |
commit | 4a5ae4a55f7bf4f4bc4355899ec5eaaa0af32d0c (patch) | |
tree | 336ccad8951553545b13c2b2285e0ee8f4795364 /source/blender/src/drawoops.c | |
parent | 4347b1a7526d57703dc9213af71d402fd8f8a572 (diff) |
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...
Diffstat (limited to 'source/blender/src/drawoops.c')
-rw-r--r-- | source/blender/src/drawoops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/src/drawoops.c b/source/blender/src/drawoops.c index 5297f260d38..e96360f45ea 100644 --- a/source/blender/src/drawoops.c +++ b/source/blender/src/drawoops.c @@ -46,7 +46,6 @@ #include "BLI_blenlib.h" #include "BLI_arithb.h" -#include "BLI_editVert.h" #include "DNA_ID.h" #include "DNA_mesh_types.h" |