style cleanup
This commit is contained in:
@@ -584,7 +584,7 @@ void BLI_reverselist(ListBase *lb)
|
||||
struct Link *curr = lb->first;
|
||||
struct Link *prev = NULL;
|
||||
struct Link *next = NULL;
|
||||
while(curr) {
|
||||
while (curr) {
|
||||
next = curr->next;
|
||||
curr->next = prev;
|
||||
curr->prev = next;
|
||||
|
@@ -136,7 +136,7 @@ void ZCombineMaskAlphaOperation::executePixel(float output[4], float x, float y,
|
||||
this->m_image1Reader->read(color1, x, y, sampler);
|
||||
this->m_image2Reader->read(color2, x, y, sampler);
|
||||
|
||||
float fac = (1.0f - mask[0])*(1.0f - color1[3]) + mask[0]*color2[3];
|
||||
float fac = (1.0f - mask[0]) * (1.0f - color1[3]) + mask[0] * color2[3];
|
||||
float mfac = 1.0f - fac;
|
||||
|
||||
output[0] = color1[0] * mfac + color2[0] * fac;
|
||||
|
@@ -224,7 +224,7 @@ static unsigned short *brush_painter_mask_new(BrushPainter *painter, int size)
|
||||
unsigned short *mask, *m;
|
||||
int x, y;
|
||||
|
||||
mask = MEM_callocN(sizeof(unsigned short)*size*size, "brush_painter_mask");
|
||||
mask = MEM_callocN(sizeof(unsigned short) * size * size, "brush_painter_mask");
|
||||
m = mask;
|
||||
|
||||
for (y = 0; y < size; y++) {
|
||||
|
@@ -2830,7 +2830,7 @@ void RNA_property_collection_skip(CollectionPropertyIterator *iter, int num)
|
||||
ArrayIterator *internal = iter->internal;
|
||||
|
||||
if (!internal->skip) {
|
||||
internal->ptr += internal->itemsize*(num-1);
|
||||
internal->ptr += internal->itemsize * (num - 1);
|
||||
iter->valid = (internal->ptr < internal->endptr);
|
||||
if (iter->valid)
|
||||
RNA_property_collection_next(iter);
|
||||
|
Reference in New Issue
Block a user