Cleanup: clang-format

This commit is contained in:
Campbell Barton 2021-12-13 16:22:21 +11:00
parent 36c6b2e893
commit bea5a9997d
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ bool MetalInfo::device_version_check(id<MTLDevice> device)
/* Metal Cycles doesn't work correctly on macOS versions older than 12.0 */
if (@available(macos 12.0, *)) {
MetalGPUVendor vendor = get_vendor_from_device_name([[device name] UTF8String]);
/* Metal Cycles works on Apple Silicon GPUs at present */
return (vendor == METAL_GPU_APPLE);
}

View File

@ -447,7 +447,9 @@ static void ui_node_link(bContext *C, void *arg_p, void *event_p)
ED_undo_push(C, "Node input modify");
}
static void ui_node_sock_name(const bNodeTree *ntree, bNodeSocket *sock, char name[UI_MAX_NAME_STR])
static void ui_node_sock_name(const bNodeTree *ntree,
bNodeSocket *sock,
char name[UI_MAX_NAME_STR])
{
if (sock->link && sock->link->fromnode) {
bNode *node = sock->link->fromnode;