Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 778 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| PointerRNA imaptr = RNA_pointer_get(ptr, "image"); | PointerRNA imaptr = RNA_pointer_get(ptr, "image"); | ||||
| PointerRNA iuserptr = RNA_pointer_get(ptr, "image_user"); | PointerRNA iuserptr = RNA_pointer_get(ptr, "image_user"); | ||||
| uiLayoutSetContextPointer(layout, "image_user", &iuserptr); | uiLayoutSetContextPointer(layout, "image_user", &iuserptr); | ||||
| uiTemplateID(layout, C, ptr, "image", NULL, "IMAGE_OT_open", NULL); | uiTemplateID(layout, C, ptr, "image", NULL, "IMAGE_OT_open", NULL); | ||||
| uiItemR(layout, ptr, "color_space", 0, "", ICON_NONE); | uiItemR(layout, ptr, "color_space", 0, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "projection", 0, "", ICON_NONE); | uiItemR(layout, ptr, "projection", 0, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "interpolation", 0, "", ICON_NONE); | |||||
| if (RNA_enum_get(ptr, "projection") == SHD_PROJ_BOX) { | if (RNA_enum_get(ptr, "projection") == SHD_PROJ_BOX) { | ||||
| uiItemR(layout, ptr, "projection_blend", 0, "Blend", ICON_NONE); | uiItemR(layout, ptr, "projection_blend", 0, "Blend", ICON_NONE); | ||||
| } | } | ||||
| /* note: image user properties used directly here, unlike compositor image node, | /* note: image user properties used directly here, unlike compositor image node, | ||||
| * which redefines them in the node struct RNA to get proper updates. | * which redefines them in the node struct RNA to get proper updates. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 2,671 Lines • Show Last 20 Lines | |||||