Blender Git Loki

Git Commits -> Revision c192b80

Revision c192b80 by Daniel Dunbar (master)
August 9, 2005, 08:12 (GMT)
Big commit, had to rework lots of selection stuff so that things
worked properly with modifiers. Needs more testing I am sure.
No, honestly, I wasn't just cleaning for the hell of it, it
was *necessary* (I would never do such a thing). Selection should
work completely with cage options of modifiers now.

- added DerivedMesh foreach functions to iterate over mapped
verts/edges/face centers. These replaced some of the drawing
functions and are more general anyway. Special edge drawing
functions remain for performance reasons.
- removed EditFace xs, ys fields
- added general functions to iterate over screen coordinates of
mesh/curve/lattice objects
- removed all calc_*verts* functions that were used for storing
screen coordinates in objects. they were recalc'd on the fly
for most situations anyway, so now we just always do that.
calc_*verts_ext was one of those calls that did dirty things
deep down in the callstack (changing curarea and poking at
matrices)
- rewrote all vertex level selection routines (circle, lasso, bbox)
and closest vertex routines (rightmouse select) to use the new
system. This cleaned up the selection code a lot and the structure
of selection is much easier to see now. This is good for future
work on allowing modifiers to completely override the selection
system. It also points out some discrepancies in the way selection
is handled that might be nice to resolve (mesh vertex selection has
fancy stuff to try to help with selecting overlapping, but it only
works w/o bbuf select, and curves/lattices don't have at all).
- had to remove ton's code to move Manipulator to cage location, this
is not reliable (can come up with a different method if requested)
- as it happens BezTriple.s and BPoint.s are basically available to
be removed, just need to rewrite editipo code that still does
background calc of screen coordinates
- MVert.{xs,ys} are still around because they are abused in some places
for other info (not sure if this is safe actually, since they are
short's and the mvert limit went up).

And did I mention this commit is comes out to -305 lines? Well it does.

Commit Details:

Full Hash: c192b80b179ee32c0d39417e0737ac5d409b0db9
SVN Revision: 5051
Parent Commit: 932e958
Lines Changed: +1031, -1336

19 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+18, -21) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+42, -180) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+29, -100) (Diff)
/source/blender/blenlib/BLI_editVert.h (+0, -1) (Diff)
/source/blender/include/BDR_drawobject.h (+10, -5) (Diff)
/source/blender/include/BDR_editcurve.h (+0, -4) (Diff)
/source/blender/include/BIF_editmesh.h (+2, -2) (Diff)
/source/blender/python/api2_2x/BezTriple.c (+2, -8) (Diff)
/source/blender/python/api2_2x/CurNurb.c (+1, -2) (Diff)
/source/blender/src/buttons_editing.c (+0, -1) (Diff)
/source/blender/src/drawobject.c (+203, -137) (Diff)
/source/blender/src/editcurve.c (+67, -115) (Diff)
/source/blender/src/editlattice.c (+20, -27) (Diff)
/source/blender/src/editmesh_add.c (+0, -2) (Diff)
/source/blender/src/editmesh_loop.c (+0, -2) (Diff)
/source/blender/src/editmesh_mods.c (+220, -238) (Diff)
/source/blender/src/editmesh_tools.c (+28, -36) (Diff)
/source/blender/src/editview.c (+388, -447) (Diff)
/source/blender/src/transform_manipulator.c (+1, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021