Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 3,143 Lines • ▼ Show 20 Lines | |||||
| /* ****************** BUTTON CALLBACKS FOR GEOMETRY NODES ***************** */ | /* ****************** BUTTON CALLBACKS FOR GEOMETRY NODES ***************** */ | ||||
| static void node_geometry_buts_boolean_math(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_geometry_buts_boolean_math(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "operation", DEFAULT_FLAGS, "", ICON_NONE); | uiItemR(layout, ptr, "operation", DEFAULT_FLAGS, "", ICON_NONE); | ||||
| } | } | ||||
| static void node_geometry_buts_attribute_compare(uiLayout *layout, | |||||
| bContext *UNUSED(C), | |||||
| PointerRNA *ptr) | |||||
| { | |||||
| uiItemR(layout, ptr, "operation", DEFAULT_FLAGS, "", ICON_NONE); | |||||
| uiItemR(layout, ptr, "input_type_a", DEFAULT_FLAGS, IFACE_("Type A"), ICON_NONE); | |||||
| uiItemR(layout, ptr, "input_type_b", DEFAULT_FLAGS, IFACE_("Type B"), ICON_NONE); | |||||
| } | |||||
| static void node_geometry_buts_subdivision_surface(uiLayout *layout, | static void node_geometry_buts_subdivision_surface(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| PointerRNA *UNUSED(ptr)) | PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| #ifndef WITH_OPENSUBDIV | #ifndef WITH_OPENSUBDIV | ||||
| uiItemL(layout, IFACE_("Disabled, built without OpenSubdiv"), ICON_ERROR); | uiItemL(layout, IFACE_("Disabled, built without OpenSubdiv"), ICON_ERROR); | ||||
| #else | #else | ||||
| UNUSED_VARS(layout); | UNUSED_VARS(layout); | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | case GEO_NODE_TRIANGULATE: | ||||
| ntype->draw_buttons = node_geometry_buts_triangulate; | ntype->draw_buttons = node_geometry_buts_triangulate; | ||||
| break; | break; | ||||
| case GEO_NODE_ATTRIBUTE_RANDOMIZE: | case GEO_NODE_ATTRIBUTE_RANDOMIZE: | ||||
| ntype->draw_buttons = node_geometry_buts_random_attribute; | ntype->draw_buttons = node_geometry_buts_random_attribute; | ||||
| break; | break; | ||||
| case GEO_NODE_ATTRIBUTE_MATH: | case GEO_NODE_ATTRIBUTE_MATH: | ||||
| ntype->draw_buttons = node_geometry_buts_attribute_math; | ntype->draw_buttons = node_geometry_buts_attribute_math; | ||||
| break; | break; | ||||
| case GEO_NODE_ATTRIBUTE_COMPARE: | |||||
| ntype->draw_buttons = node_geometry_buts_attribute_compare; | |||||
| break; | |||||
| case GEO_NODE_POINT_INSTANCE: | case GEO_NODE_POINT_INSTANCE: | ||||
| ntype->draw_buttons = node_geometry_buts_point_instance; | ntype->draw_buttons = node_geometry_buts_point_instance; | ||||
| break; | break; | ||||
| case GEO_NODE_ATTRIBUTE_FILL: | case GEO_NODE_ATTRIBUTE_FILL: | ||||
| ntype->draw_buttons = node_geometry_buts_attribute_fill; | ntype->draw_buttons = node_geometry_buts_attribute_fill; | ||||
| break; | break; | ||||
| case GEO_NODE_ATTRIBUTE_MIX: | case GEO_NODE_ATTRIBUTE_MIX: | ||||
| ntype->draw_buttons = node_geometry_buts_attribute_mix; | ntype->draw_buttons = node_geometry_buts_attribute_mix; | ||||
| ▲ Show 20 Lines • Show All 919 Lines • Show Last 20 Lines | |||||