changed bmesh_api_set/getindex to be just macros, and shortened to bmesh_api_get/seti
This commit is contained in:
@@ -49,22 +49,6 @@ void bmesh_error(void)
|
||||
printf("BM modelling error!");
|
||||
}
|
||||
|
||||
#ifndef bmesh_api_setindex
|
||||
/*NOTE: ensure different parts of the API do not conflict
|
||||
on using this!*/
|
||||
void bmesh_api_setindex(BMesh *bm, BMHeader *head, int i)
|
||||
{
|
||||
head->flags[bm->stackdepth-1].pflag = i;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef bmesh_api_getindex
|
||||
int bmesh_api_getindex(BMesh *bm, BMHeader *head)
|
||||
{
|
||||
return head->flags[bm->stackdepth-1].pflag;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* BMESH SET SYSFLAG
|
||||
*
|
||||
|
||||
@@ -59,15 +59,10 @@ void bmesh_clear_sysflag(struct BMHeader *element, int flag);
|
||||
int bmesh_test_sysflag(struct BMHeader *element, int flag);
|
||||
|
||||
/*NOTE: ensure different parts of the API do not conflict
|
||||
on using this!*/
|
||||
/*used to access the index member of the current flag layer.
|
||||
actual functions are only defined if the below macro versions
|
||||
are not.*/
|
||||
void bmesh_api_setindex(BMesh *bm, BMHeader *head, int i);
|
||||
int bmesh_api_getindex(BMesh *bm, BMHeader *head);
|
||||
|
||||
#define bmesh_api_setindex(bm, head, i) ((head)->flags[bm->stackdepth-1].pflag = i)
|
||||
#define bmesh_api_getindex(bm, head) ((head)->flags[bm->stackdepth-1].pflag)
|
||||
on using this! sets and gets the API index member
|
||||
of the current flag layer.*/
|
||||
#define bmesh_api_seti(bm, head, i) ((head)->flags[bm->stackdepth-1].pflag = i)
|
||||
#define bmesh_api_geti(bm, head) ((head)->flags[bm->stackdepth-1].pflag)
|
||||
|
||||
/*Polygon Utilities ? FIXME... where do these each go?*/
|
||||
/*newedgeflag sets a flag layer flag, obviously not the header flag.*/
|
||||
|
||||
Reference in New Issue
Block a user