Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_displace.c
| Show First 20 Lines • Show All 448 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *C, Panel *panel) | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiTemplateID(layout, C, &ptr, "texture", "texture.new", NULL, NULL, 0, ICON_NONE, NULL); | uiTemplateID(layout, C, &ptr, "texture", "texture.new", NULL, NULL, 0, ICON_NONE, NULL); | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiLayoutSetActive(col, has_texture); | uiLayoutSetActive(col, has_texture); | ||||
| uiItemR(col, &ptr, "texture_coords", 0, IFACE_("Coordinates"), ICON_NONE); | uiItemR(col, &ptr, "texture_coords", 0, IFACE_("Coordinates"), ICON_NONE); | ||||
| if (texture_coords == MOD_DISP_MAP_OBJECT) { | if (texture_coords == MOD_DISP_MAP_OBJECT) { | ||||
| uiItemR(col, &ptr, "texture_coords_object", 0, NULL, ICON_NONE); | uiItemR(col, &ptr, "texture_coords_object", 0, IFACE_("Object"), ICON_NONE); | ||||
| PointerRNA texture_coords_obj_ptr = RNA_pointer_get(&ptr, "texture_coords_object"); | PointerRNA texture_coords_obj_ptr = RNA_pointer_get(&ptr, "texture_coords_object"); | ||||
| if (!RNA_pointer_is_null(&texture_coords_obj_ptr) && | if (!RNA_pointer_is_null(&texture_coords_obj_ptr) && | ||||
| (RNA_enum_get(&texture_coords_obj_ptr, "type") == OB_ARMATURE)) { | (RNA_enum_get(&texture_coords_obj_ptr, "type") == OB_ARMATURE)) { | ||||
| PointerRNA texture_coords_obj_data_ptr = RNA_pointer_get(&texture_coords_obj_ptr, "data"); | PointerRNA texture_coords_obj_data_ptr = RNA_pointer_get(&texture_coords_obj_ptr, "data"); | ||||
| uiItemPointerR(layout, | uiItemPointerR(col, | ||||
| &ptr, | &ptr, | ||||
| "texture_coords_bone", | "texture_coords_bone", | ||||
| &texture_coords_obj_data_ptr, | &texture_coords_obj_data_ptr, | ||||
| "bones", | "bones", | ||||
| IFACE_("Bone"), | IFACE_("Bone"), | ||||
| ICON_NONE); | ICON_NONE); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||