Blender Git Loki
Git Commits -> Revision 2b95b20
Revision 2b95b20 by Geoffrey Bantle (master) January 2, 2009, 04:08 (GMT) |
-> Moved some stuff out of dupeops into API -BM_Select selects an element regardless of it's type -BM_Is_Selected tests whether or not an element is selected regardless of it's type. -BM_Copy_Attributes copies custom data/flags/material indices/ect. The individual select functions should be made static and in future any additions to structures will require changes to BM_Copy_Attributes. Operator writers should always use this function instead of copying such data directly. Todo: BM_Copy_Attributes could optionally accept a bitflag defining what types of data should be copied. ie: BMESH_CUSTOMDATA|BMESH_HIDE|BMESH_SHARP, ect. Note to joe: I think this is the best way to deal with it in the API from now on. It strikes good balance between keeping implementation details wrapped up in the API while not having to worry about building some complex attribute system. So I suppose this makes the additions you made to bmesh_marking.h redundant? |
Commit Details:
Full Hash: 2b95b20f6dd62b5e24ce8ce9f93482b225baee63
SVN Revision: 18244
Parent Commit: 689195c
Lines Changed: +85, -29