Cleanup: style
This commit is contained in:
@@ -404,7 +404,7 @@ bGPDlayer *BKE_gpencil_layer_addnew(bGPdata *gpd, const char *name, bool setacti
|
||||
}
|
||||
else {
|
||||
/* if active layer, add after that layer */
|
||||
BLI_insertlinkafter(&gpd->layers,gpl_active, gpl);
|
||||
BLI_insertlinkafter(&gpd->layers, gpl_active, gpl);
|
||||
}
|
||||
|
||||
/* annotation vs GP Object behaviour is slightly different */
|
||||
|
||||
@@ -461,7 +461,7 @@ static void fastheap_down(FastHeap *heap, uint start_i, const FastHeapNode *init
|
||||
#if 1
|
||||
/* The compiler isn't smart enough to realize that all computations
|
||||
* using index here can be modified to work with byte offset. */
|
||||
uint8_t *const tree_buf = (uint8_t*)heap->tree;
|
||||
uint8_t * const tree_buf = (uint8_t *)heap->tree;
|
||||
|
||||
#define OFFSET(i) (i * (uint)sizeof(FastHeapNode))
|
||||
#define NODE(offset) (*(FastHeapNode*)(tree_buf + (offset)))
|
||||
|
||||
Reference in New Issue
Block a user