style cleanup
This commit is contained in:
@@ -875,7 +875,7 @@ static void basisNurb(float t, short order, short pnts, float *knots, float *bas
|
|||||||
|
|
||||||
|
|
||||||
void BKE_nurb_makeFaces(Nurb *nu, float *coord_array, int rowstride, int resolu, int resolv)
|
void BKE_nurb_makeFaces(Nurb *nu, float *coord_array, int rowstride, int resolu, int resolv)
|
||||||
/* coord_array has to be 3*4*resolu*resolv in size, and zero-ed */
|
/* coord_array has to be (3 * 4 * resolu * resolv) in size, and zero-ed */
|
||||||
{
|
{
|
||||||
BPoint *bp;
|
BPoint *bp;
|
||||||
float *basisu, *basis, *basisv, *sum, *fp, *in;
|
float *basisu, *basis, *basisv, *sum, *fp, *in;
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ static void fcm_generator_verify(FModifier *fcm)
|
|||||||
|
|
||||||
case FCM_GENERATOR_POLYNOMIAL_FACTORISED: /* expanded polynomial expression */
|
case FCM_GENERATOR_POLYNOMIAL_FACTORISED: /* expanded polynomial expression */
|
||||||
{
|
{
|
||||||
/* arraysize needs to be 2*order, so resize if not */
|
/* arraysize needs to be (2 * order), so resize if not */
|
||||||
if (data->arraysize != (data->poly_order * 2)) {
|
if (data->arraysize != (data->poly_order * 2)) {
|
||||||
float *nc;
|
float *nc;
|
||||||
|
|
||||||
|
|||||||
@@ -1163,7 +1163,7 @@ void BKE_ptcache_ids_from_object(ListBase *lb, Object *ob, Scene *scene, int dup
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define MAX_PTCACHE_PATH FILE_MAX
|
#define MAX_PTCACHE_PATH FILE_MAX
|
||||||
#define MAX_PTCACHE_FILE ((FILE_MAX)*2)
|
#define MAX_PTCACHE_FILE (FILE_MAX * 2)
|
||||||
|
|
||||||
static int ptcache_path(PTCacheID *pid, char *filename)
|
static int ptcache_path(PTCacheID *pid, char *filename)
|
||||||
{
|
{
|
||||||
@@ -1258,7 +1258,7 @@ static PTCacheFile *ptcache_file_open(PTCacheID *pid, int mode, int cfra)
|
|||||||
{
|
{
|
||||||
PTCacheFile *pf;
|
PTCacheFile *pf;
|
||||||
FILE *fp = NULL;
|
FILE *fp = NULL;
|
||||||
char filename[(FILE_MAX)*2];
|
char filename[FILE_MAX * 2];
|
||||||
|
|
||||||
#ifndef DURIAN_POINTCACHE_LIB_OK
|
#ifndef DURIAN_POINTCACHE_LIB_OK
|
||||||
/* don't allow writing for linked objects */
|
/* don't allow writing for linked objects */
|
||||||
|
|||||||
@@ -1584,14 +1584,14 @@ int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco)
|
|||||||
if (sa->flag & HEADER_NO_PULLDOWN) {
|
if (sa->flag & HEADER_NO_PULLDOWN) {
|
||||||
but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0,
|
but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0,
|
||||||
ICON_DISCLOSURE_TRI_RIGHT,
|
ICON_DISCLOSURE_TRI_RIGHT,
|
||||||
xco, yco, U.widget_unit, U.widget_unit*0.9,
|
xco, yco, U.widget_unit, U.widget_unit * 0.9f,
|
||||||
&(sa->flag), 0, 0, 0, 0,
|
&(sa->flag), 0, 0, 0, 0,
|
||||||
"Show pulldown menus");
|
"Show pulldown menus");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0,
|
but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0,
|
||||||
ICON_DISCLOSURE_TRI_DOWN,
|
ICON_DISCLOSURE_TRI_DOWN,
|
||||||
xco, yco, U.widget_unit, U.widget_unit*0.9,
|
xco, yco, U.widget_unit, U.widget_unit * 0.9f,
|
||||||
&(sa->flag), 0, 0, 0, 0,
|
&(sa->flag), 0, 0, 0, 0,
|
||||||
"Hide pulldown menus");
|
"Hide pulldown menus");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user