Blender Git Loki
Git Commits -> Revision e435fbc
Revision e435fbc by Brecht Van Lommel (master) November 20, 2006, 04:28 (GMT) |
Added custom vertex/edge/face data for meshes: All data layers, including MVert/MEdge/MFace, are now managed as custom data layers. The pointers like Mesh.mvert, Mesh.dvert or Mesh.mcol are still used of course, but allocating, copying or freeing these arrays should be done through the CustomData API. Work in progress documentation on this is here: http://mediawiki.blender.org/index.php/BlenderDev/BlenderArchitecture/CustomData Replaced TFace by MTFace: This is the same struct, except that it does not contain color, that now always stays separated in MCol. This was not a good design decision to begin with, and it is needed for adding multiple color layers later. Note that this does mean older Blender versions will not be able to read UV coordinates from the next release, due to an SDNA limitation. Removed DispListMesh: This now fully replaced by DerivedMesh. To provide access to arrays of vertices, edges and faces, like DispListMesh does. The semantics of the DerivedMesh.getVertArray() and similar functions were changed to return a pointer to an array if one exists, or otherwise allocate a temporary one. On releasing the DerivedMesh, this temporary array will be removed automatically. Removed ssDM and meshDM DerivedMesh backends: The ssDM backend was for DispListMesh, so that became obsolete automatically. The meshDM backend was replaced by the custom data backend, that now figures out which layers need to be modified, and only duplicates those. This changes code in many places, and overall removes 2514 lines of code. So, there's a good chance this might break some stuff, although I've been testing it for a few days now. The good news is, adding multiple color and uv layers should now become easy. |
Commit Details:
Full Hash: e435fbc3c5a00e5b63c1cd2609ab6828187660d3
SVN Revision: 8957
Parent Commit: 0a7c43c
Lines Changed: +3223, -5737
89 Modified Paths:
/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+0, -1) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+0, -2) (Diff)
/source/blender/blenkernel/BKE_cdderivedmesh.h (+16, -9) (Diff)
/source/blender/blenkernel/BKE_customdata.h (+63, -40) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+38, -31) (Diff)
/source/blender/blenkernel/BKE_displist.h (+3, -28) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+6, -7) (Diff)
/source/blender/blenkernel/BKE_subsurf.h (+0, -3) (Diff)
/source/blender/blenkernel/intern/anim.c (+3, -5) (Diff)
/source/blender/blenkernel/intern/armature.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+440, -374) (Diff)
/source/blender/blenkernel/intern/customdata.c (+397, -196) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+415, -1620) (Diff)
/source/blender/blenkernel/intern/displist.c (+45, -168) (Diff)
/source/blender/blenkernel/intern/exotic.c (+91, -77) (Diff)
/source/blender/blenkernel/intern/lattice.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/mesh.c (+63, -116) (Diff)
/source/blender/blenkernel/intern/modifier.c (+58, -167) (Diff)
/source/blender/blenkernel/intern/object.c (+3, -1) (Diff)
/source/blender/blenkernel/intern/softbody.c (+22, -44) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+115, -881) (Diff)
/source/blender/blenloader/intern/readfile.c (+111, -32) (Diff)
/source/blender/blenloader/intern/writefile.c (+33, -12) (Diff)
/source/blender/include/BDR_drawmesh.h (+2, -2) (Diff)
/source/blender/include/BDR_editface.h (+4, -3) (Diff)
/source/blender/include/BDR_vpaint.h (+1, -1) (Diff)
/source/blender/include/BIF_editmesh.h (+1, -1) (Diff)
/source/blender/include/BSE_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+25, -19) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+53, -2) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+13, -57) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+145, -387) (Diff)
/source/blender/python/api2_2x/NMesh.c (+68, -158) (Diff)
/source/blender/radiosity/extern/include/radio_types.h (+7, -5) (Diff)
/source/blender/radiosity/intern/source/radio.c (+6, -5) (Diff)
/source/blender/radiosity/intern/source/radpostprocess.c (+33, -53) (Diff)
/source/blender/radiosity/intern/source/radpreprocess.c (+11, -14) (Diff)
/source/blender/render/intern/include/render_types.h (+2, -2) (Diff)
/source/blender/render/intern/source/convertblender.c (+43, -101) (Diff)
/source/blender/render/intern/source/rendercore.c (+1, -1) (Diff)
/source/blender/src/booleanops.c (+22, -48) (Diff)
/source/blender/src/buttons_editing.c (+39, -27) (Diff)
/source/blender/src/drawimage.c (+18, -19) (Diff)
/source/blender/src/drawmesh.c (+35, -31) (Diff)
/source/blender/src/drawobject.c (+26, -45) (Diff)
/source/blender/src/drawview.c (+1, -1) (Diff)
/source/blender/src/editdeform.c (+7, -7) (Diff)
/source/blender/src/editface.c (+174, -161) (Diff)
/source/blender/src/editmesh.c (+48, -91) (Diff)
/source/blender/src/editmesh_lib.c (+6, -6) (Diff)
/source/blender/src/editmesh_mods.c (+11, -14) (Diff)
/source/blender/src/editmesh_tools.c (+15, -55) (Diff)
/source/blender/src/editobject.c (+15, -16) (Diff)
/source/blender/src/editsima.c (+55, -55) (Diff)
/source/blender/src/editview.c (+3, -2) (Diff)
/source/blender/src/filesel.c (+3, -2) (Diff)
/source/blender/src/fluidsim.c (+29, -30) (Diff)
/source/blender/src/header_view3d.c (+10, -8) (Diff)
/source/blender/src/imagepaint.c (+1, -1) (Diff)
/source/blender/src/meshtools.c (+47, -107) (Diff)
/source/blender/src/multires.c (+46, -52) (Diff)
/source/blender/src/poseobject.c (+2, -3) (Diff)
/source/blender/src/sculptmode.c (+31, -19) (Diff)
/source/blender/src/space.c (+1, -1) (Diff)
/source/blender/src/transform_conversions.c (+6, -7) (Diff)
/source/blender/src/unwrapper.c (+12, -12) (Diff)
/source/blender/src/verse_mesh.c (+12, -34) (Diff)
/source/blender/src/verse_object.c (+6, -4) (Diff)
/source/blender/src/vpaint.c (+48, -89) (Diff)
/source/blender/yafray/intern/export_File.cpp (+3, -3) (Diff)
/source/blender/yafray/intern/export_Plugin.cpp (+4, -4) (Diff)
/source/blender/yafray/intern/export_Plugin.h (+1, -1) (Diff)
/source/blender/yafray/intern/yafray_Render.cpp (+1, -1) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp (+9, -7) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.h (+2, -2) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp (+2, -2) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.h (+7, -7) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp (+8, -5) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+49, -87) (Diff)
/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp (+5, -5) (Diff)
/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.h (+4, -4) (Diff)
/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp (+15, -9) (Diff)
/source/gameengine/GamePlayer/common/GPC_RenderTools.h (+2, -1) (Diff)
/source/gameengine/Ketsji/BL_Material.h (+5, -5) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.cpp (+8, -2) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.h (+3, -2) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.cpp (+8, -6) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.h (+11, -4) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+0, -2) (Diff)
/source/blender/blenkernel/BKE_cdderivedmesh.h (+16, -9) (Diff)
/source/blender/blenkernel/BKE_customdata.h (+63, -40) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+38, -31) (Diff)
/source/blender/blenkernel/BKE_displist.h (+3, -28) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+6, -7) (Diff)
/source/blender/blenkernel/BKE_subsurf.h (+0, -3) (Diff)
/source/blender/blenkernel/intern/anim.c (+3, -5) (Diff)
/source/blender/blenkernel/intern/armature.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+440, -374) (Diff)
/source/blender/blenkernel/intern/customdata.c (+397, -196) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+415, -1620) (Diff)
/source/blender/blenkernel/intern/displist.c (+45, -168) (Diff)
/source/blender/blenkernel/intern/exotic.c (+91, -77) (Diff)
/source/blender/blenkernel/intern/lattice.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/mesh.c (+63, -116) (Diff)
/source/blender/blenkernel/intern/modifier.c (+58, -167) (Diff)
/source/blender/blenkernel/intern/object.c (+3, -1) (Diff)
/source/blender/blenkernel/intern/softbody.c (+22, -44) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+115, -881) (Diff)
/source/blender/blenloader/intern/readfile.c (+111, -32) (Diff)
/source/blender/blenloader/intern/writefile.c (+33, -12) (Diff)
/source/blender/include/BDR_drawmesh.h (+2, -2) (Diff)
/source/blender/include/BDR_editface.h (+4, -3) (Diff)
/source/blender/include/BDR_vpaint.h (+1, -1) (Diff)
/source/blender/include/BIF_editmesh.h (+1, -1) (Diff)
/source/blender/include/BSE_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+25, -19) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+53, -2) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+13, -57) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+145, -387) (Diff)
/source/blender/python/api2_2x/NMesh.c (+68, -158) (Diff)
/source/blender/radiosity/extern/include/radio_types.h (+7, -5) (Diff)
/source/blender/radiosity/intern/source/radio.c (+6, -5) (Diff)
/source/blender/radiosity/intern/source/radpostprocess.c (+33, -53) (Diff)
/source/blender/radiosity/intern/source/radpreprocess.c (+11, -14) (Diff)
/source/blender/render/intern/include/render_types.h (+2, -2) (Diff)
/source/blender/render/intern/source/convertblender.c (+43, -101) (Diff)
/source/blender/render/intern/source/rendercore.c (+1, -1) (Diff)
/source/blender/src/booleanops.c (+22, -48) (Diff)
/source/blender/src/buttons_editing.c (+39, -27) (Diff)
/source/blender/src/drawimage.c (+18, -19) (Diff)
/source/blender/src/drawmesh.c (+35, -31) (Diff)
/source/blender/src/drawobject.c (+26, -45) (Diff)
/source/blender/src/drawview.c (+1, -1) (Diff)
/source/blender/src/editdeform.c (+7, -7) (Diff)
/source/blender/src/editface.c (+174, -161) (Diff)
/source/blender/src/editmesh.c (+48, -91) (Diff)
/source/blender/src/editmesh_lib.c (+6, -6) (Diff)
/source/blender/src/editmesh_mods.c (+11, -14) (Diff)
/source/blender/src/editmesh_tools.c (+15, -55) (Diff)
/source/blender/src/editobject.c (+15, -16) (Diff)
/source/blender/src/editsima.c (+55, -55) (Diff)
/source/blender/src/editview.c (+3, -2) (Diff)
/source/blender/src/filesel.c (+3, -2) (Diff)
/source/blender/src/fluidsim.c (+29, -30) (Diff)
/source/blender/src/header_view3d.c (+10, -8) (Diff)
/source/blender/src/imagepaint.c (+1, -1) (Diff)
/source/blender/src/meshtools.c (+47, -107) (Diff)
/source/blender/src/multires.c (+46, -52) (Diff)
/source/blender/src/poseobject.c (+2, -3) (Diff)
/source/blender/src/sculptmode.c (+31, -19) (Diff)
/source/blender/src/space.c (+1, -1) (Diff)
/source/blender/src/transform_conversions.c (+6, -7) (Diff)
/source/blender/src/unwrapper.c (+12, -12) (Diff)
/source/blender/src/verse_mesh.c (+12, -34) (Diff)
/source/blender/src/verse_object.c (+6, -4) (Diff)
/source/blender/src/vpaint.c (+48, -89) (Diff)
/source/blender/yafray/intern/export_File.cpp (+3, -3) (Diff)
/source/blender/yafray/intern/export_Plugin.cpp (+4, -4) (Diff)
/source/blender/yafray/intern/export_Plugin.h (+1, -1) (Diff)
/source/blender/yafray/intern/yafray_Render.cpp (+1, -1) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp (+9, -7) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.h (+2, -2) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp (+2, -2) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.h (+7, -7) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp (+8, -5) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+49, -87) (Diff)
/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp (+5, -5) (Diff)
/source/gameengine/GamePlayer/common/GPC_PolygonMaterial.h (+4, -4) (Diff)
/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp (+15, -9) (Diff)
/source/gameengine/GamePlayer/common/GPC_RenderTools.h (+2, -1) (Diff)
/source/gameengine/Ketsji/BL_Material.h (+5, -5) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.cpp (+8, -2) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.h (+3, -2) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.cpp (+8, -6) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.h (+11, -4) (Diff)