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

5 Modified Paths:

/bmesh/bmesh.h (+1, -1) (Diff)
/bmesh/bmesh_marking.h (+3, -0) (Diff)
/bmesh/intern/bmesh_construct.c (+50, -0) (Diff)
/bmesh/intern/bmesh_marking.c (+13, -2) (Diff)
/bmesh/operators/bmesh_dupeops.c (+18, -26) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021