Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_template_asset_view.cc
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | static void asset_view_item_but_drag_set(uiBut *but, | ||||
| ED_asset_handle_get_full_library_path( | ED_asset_handle_get_full_library_path( | ||||
| nullptr, &list_data->asset_library_ref, asset_handle, blend_path); | nullptr, &list_data->asset_library_ref, asset_handle, blend_path); | ||||
| if (blend_path[0]) { | if (blend_path[0]) { | ||||
| ImBuf *imbuf = ED_assetlist_asset_image_get(asset_handle); | ImBuf *imbuf = ED_assetlist_asset_image_get(asset_handle); | ||||
| UI_but_drag_set_asset(but, | UI_but_drag_set_asset(but, | ||||
| asset_handle, | asset_handle, | ||||
| BLI_strdup(blend_path), | BLI_strdup(blend_path), | ||||
| ED_asset_handle_get_metadata(asset_handle), | |||||
| FILE_ASSET_IMPORT_APPEND, | FILE_ASSET_IMPORT_APPEND, | ||||
| ED_asset_handle_get_preview_icon_id(asset_handle), | ED_asset_handle_get_preview_icon_id(asset_handle), | ||||
| imbuf, | imbuf, | ||||
| 1.0f); | 1.0f); | ||||
| } | } | ||||
| } | } | ||||
| static void asset_view_draw_item(uiList *ui_list, | static void asset_view_draw_item(uiList *ui_list, | ||||
| ▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines | |||||