Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 2,743 Lines • ▼ Show 20 Lines | static void node_composit_buts_brightcontrast(uiLayout *layout, | ||||
| uiItemR(layout, ptr, "use_premultiply", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_premultiply", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| #ifndef WITH_OPENIMAGEDENOISE | #ifndef WITH_OPENIMAGEDENOISE | ||||
| uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR); | uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR); | ||||
| #else | #else | ||||
| if (!BLI_cpu_support_sse41()) { | /* Always supported through Accelerate framework BNNS on macOS. */ | ||||
| # ifndef __APPLE__ | |||||
| if (!BLI_cpu_support_sse41()) | |||||
| # endif | |||||
| { | |||||
| uiItemL(layout, IFACE_("Disabled, CPU with SSE4.1 is required"), ICON_ERROR); | uiItemL(layout, IFACE_("Disabled, CPU with SSE4.1 is required"), ICON_ERROR); | ||||
| } | } | ||||
| #endif | #endif | ||||
| uiItemR(layout, ptr, "use_hdr", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_hdr", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| /* only once called */ | /* only once called */ | ||||
| ▲ Show 20 Lines • Show All 688 Lines • ▼ Show 20 Lines | case SOCK_RGBA: { | ||||
| break; | break; | ||||
| } | } | ||||
| case SOCK_STRING: { | case SOCK_STRING: { | ||||
| uiLayout *row = uiLayoutSplit(layout, 0.4f, false); | uiLayout *row = uiLayoutSplit(layout, 0.4f, false); | ||||
| uiItemL(row, text, 0); | uiItemL(row, text, 0); | ||||
| const bNodeTree *node_tree = (const bNodeTree *)node_ptr->owner_id; | const bNodeTree *node_tree = (const bNodeTree *)node_ptr->owner_id; | ||||
| if (node_tree->type == NTREE_GEOMETRY) { | if (node_tree->type == NTREE_GEOMETRY) { | ||||
| node_geometry_add_attribute_search_button(node_tree, node, ptr, row); | node_geometry_add_attribute_search_button(C, node_tree, node, ptr, row); | ||||
| } | } | ||||
| else { | else { | ||||
| uiItemR(row, ptr, "default_value", DEFAULT_FLAGS, "", 0); | uiItemR(row, ptr, "default_value", DEFAULT_FLAGS, "", 0); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case SOCK_OBJECT: { | case SOCK_OBJECT: { | ||||
| ▲ Show 20 Lines • Show All 672 Lines • Show Last 20 Lines | |||||