Blender Git Commit Log

Git Commits -> Revision e546e81

Revision e546e81 by Daniel Dunbar (master)
July 22, 2005, 07:37 (GMT)
- added data arguments to deformer modifiers, in case someone wants
to write one that is based on geometry (and not just vertex position)
- added editmode versions of modifier deform/apply calls and flag
to tag modifiers that support editmode
- added isFinalCalc param to applyModifier, basically a switch to let
subsurf know if it is calc'ng orco or not (so it can deal with cache
appropriately). This is kinda hacky and perhaps I can come up with
a better solution (its also a waste to do a complete subdivide just
to get vertex locations).
- changed ccgsubsurf to not preallocate hash's to be approximately correct
size... this was probably not a big performance savings but means that
the order of faces returned by the iterator can vary after the first
call, this messes up orco calculation so dropped for time being.
- minor bug fix, meshes with only key didn't get vertex normals correctly
calc'd
- updated editmesh derivedmesh to support auxiliary locations
- changed mesh_calc_modifiers to alloc deformVerts on demand
- added editmesh_calc_modifiers for calculating editmesh cage and final
derivedmesh's
- bug fix, update shadedisplist to always calc colors (even if totvert==0)
- changed load_editMesh and make_edge to build me->medge even if totedge==0
(incremental subsurf checks this)

todo: add drawFacesTex for ccgderivedmesh

So, modifiers in editmode are back (which means auto-mirror
in edit mode works now) although still not finished. Currently
no cage is computed, the cage is always the base mesh (in
other words, Optimal edge style editing is off), and the final
mesh currently includes all modifiers that work in edit mode
(including lattice and curve). At some point there will be toggles
for which modifiers affect the final/cage editmode derivedmesh's.

Also, very nice new feature is that incremental subsurf in object
mode returns a ccgderivedmesh object instead of copying to a new
displistmesh. This can make a *huge* speed difference, and is very
nice for working with deformed armatures (esp. with only small
per frame changes).

Commit Details:

Full Hash: e546e81762b2214eaf2439c04eea4d339901c2b5
SVN Revision: 4873
Parent Commit: 5e34b80
Lines Changed: +956, -304

11 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+5, -2) (Diff)
/source/blender/blenkernel/BKE_modifier.h (+22, -3) (Diff)
/source/blender/blenkernel/BKE_subsurf.h (+2, -2) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+301, -74) (Diff)
/source/blender/blenkernel/intern/displist.c (+77, -80) (Diff)
/source/blender/blenkernel/intern/mesh.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/modifier.c (+200, -88) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+337, -47) (Diff)
/source/blender/python/api2_2x/Lattice.c (+1, -0) (Diff)
/source/blender/src/editmesh.c (+2, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021