Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_icons.c
| Show First 20 Lines • Show All 2,147 Lines • ▼ Show 20 Lines | if (RNA_struct_is_ID(ptr->type)) { | ||||
| id = ptr->owner_id; | id = ptr->owner_id; | ||||
| } | } | ||||
| else if (RNA_struct_is_a(ptr->type, &RNA_MaterialSlot)) { | else if (RNA_struct_is_a(ptr->type, &RNA_MaterialSlot)) { | ||||
| id = RNA_pointer_get(ptr, "material").data; | id = RNA_pointer_get(ptr, "material").data; | ||||
| } | } | ||||
| else if (RNA_struct_is_a(ptr->type, &RNA_TextureSlot)) { | else if (RNA_struct_is_a(ptr->type, &RNA_TextureSlot)) { | ||||
| id = RNA_pointer_get(ptr, "texture").data; | id = RNA_pointer_get(ptr, "texture").data; | ||||
| } | } | ||||
| else if (RNA_struct_is_a(ptr->type, &RNA_FileBrowserFSMenuEntry)) { | |||||
| return RNA_int_get(ptr, "icon"); | |||||
| } | |||||
| else if (RNA_struct_is_a(ptr->type, &RNA_DynamicPaintSurface)) { | else if (RNA_struct_is_a(ptr->type, &RNA_DynamicPaintSurface)) { | ||||
| DynamicPaintSurface *surface = ptr->data; | DynamicPaintSurface *surface = ptr->data; | ||||
| if (surface->format == MOD_DPAINT_SURFACE_F_PTEX) { | if (surface->format == MOD_DPAINT_SURFACE_F_PTEX) { | ||||
| return ICON_SHADING_TEXTURE; | return ICON_SHADING_TEXTURE; | ||||
| } | } | ||||
| else if (surface->format == MOD_DPAINT_SURFACE_F_VERTEX) { | else if (surface->format == MOD_DPAINT_SURFACE_F_VERTEX) { | ||||
| return ICON_OUTLINER_DATA_MESH; | return ICON_OUTLINER_DATA_MESH; | ||||
| ▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines | |||||