Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Lines | |||||
| static void node_shader_buts_vect_transform(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_shader_buts_vect_transform(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "vector_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | uiItemR(layout, ptr, "vector_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "convert_from", 0, "", ICON_NONE); | uiItemR(layout, ptr, "convert_from", 0, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "convert_to", 0, "", ICON_NONE); | uiItemR(layout, ptr, "convert_to", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void node_shader_buts_vect_rotate(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| //uiItemR(layout, ptr, "rotation_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | |||||
| } | |||||
| static void node_shader_buts_attribute(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_shader_buts_attribute(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "attribute_name", 0, IFACE_("Name"), ICON_NONE); | uiItemR(layout, ptr, "attribute_name", 0, IFACE_("Name"), ICON_NONE); | ||||
| } | } | ||||
| static void node_shader_buts_wireframe(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_shader_buts_wireframe(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "use_pixel_size", 0, NULL, 0); | uiItemR(layout, ptr, "use_pixel_size", 0, NULL, 0); | ||||
| ▲ Show 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | case SH_NODE_MATH: | ||||
| ntype->draw_buttons = node_buts_math; | ntype->draw_buttons = node_buts_math; | ||||
| break; | break; | ||||
| case SH_NODE_VECT_MATH: | case SH_NODE_VECT_MATH: | ||||
| ntype->draw_buttons = node_shader_buts_vect_math; | ntype->draw_buttons = node_shader_buts_vect_math; | ||||
| break; | break; | ||||
| case SH_NODE_VECT_TRANSFORM: | case SH_NODE_VECT_TRANSFORM: | ||||
| ntype->draw_buttons = node_shader_buts_vect_transform; | ntype->draw_buttons = node_shader_buts_vect_transform; | ||||
| break; | break; | ||||
| case SH_NODE_VECT_ROTATE: | |||||
| ntype->draw_buttons = node_shader_buts_vect_rotate; | |||||
| break; | |||||
| case SH_NODE_ATTRIBUTE: | case SH_NODE_ATTRIBUTE: | ||||
| ntype->draw_buttons = node_shader_buts_attribute; | ntype->draw_buttons = node_shader_buts_attribute; | ||||
| break; | break; | ||||
| case SH_NODE_WIREFRAME: | case SH_NODE_WIREFRAME: | ||||
| ntype->draw_buttons = node_shader_buts_wireframe; | ntype->draw_buttons = node_shader_buts_wireframe; | ||||
| break; | break; | ||||
| case SH_NODE_TEX_SKY: | case SH_NODE_TEX_SKY: | ||||
| ntype->draw_buttons = node_shader_buts_tex_sky; | ntype->draw_buttons = node_shader_buts_tex_sky; | ||||
| ▲ Show 20 Lines • Show All 2,575 Lines • Show Last 20 Lines | |||||