ghash/bli-listbase edits, rename BLI_ghash_pop -> BLI_ghash_popkey (since it takes a key as an arg and isnt popping any element from the hash as you might expect).
add BLI_pophead/tail, since getting the first element from a list and removing it is a common task.
This commit is contained in:
@@ -1039,9 +1039,7 @@ static void GPU_nodes_free(ListBase *nodes)
|
||||
{
|
||||
GPUNode *node;
|
||||
|
||||
while (nodes->first) {
|
||||
node = nodes->first;
|
||||
BLI_remlink(nodes, node);
|
||||
while ((node = BLI_pophead(nodes))) {
|
||||
GPU_node_free(node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user