Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| static void node_shader_buts_lamp(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiItemR(layout, ptr, "lamp_object", 0, IFACE_("Lamp Object"), 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); | ||||
| Context not available. | |||||
| case SH_NODE_GEOMETRY: | case SH_NODE_GEOMETRY: | ||||
| ntype->draw_buttons = node_shader_buts_geometry; | ntype->draw_buttons = node_shader_buts_geometry; | ||||
| break; | break; | ||||
| case SH_NODE_LAMP: | |||||
| ntype->draw_buttons = node_shader_buts_lamp; | |||||
| 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; | ||||
| Context not available. | |||||