Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/asset_catalog_tree_view.cc
| Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | if (!asset_drags) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| LISTBASE_FOREACH (wmDragAssetListItem *, asset_item, asset_drags) { | LISTBASE_FOREACH (wmDragAssetListItem *, asset_item, asset_drags) { | ||||
| if (asset_item->is_external) { | if (asset_item->is_external) { | ||||
| /* Only internal assets can be modified! */ | /* Only internal assets can be modified! */ | ||||
| continue; | continue; | ||||
| } | } | ||||
| WM_file_tag_modified(); | |||||
| BKE_asset_metadata_catalog_id_set( | BKE_asset_metadata_catalog_id_set( | ||||
| asset_item->asset_data.local_id->asset_data, catalog_id, simple_name.c_str()); | asset_item->asset_data.local_id->asset_data, catalog_id, simple_name.c_str()); | ||||
| /* Trigger re-run of filtering to update visible assets. */ | /* Trigger re-run of filtering to update visible assets. */ | ||||
| filelist_tag_needs_filtering(tree_view.space_file_.files); | filelist_tag_needs_filtering(tree_view.space_file_.files); | ||||
| file_select_deselect_all(&tree_view.space_file_, FILE_SEL_SELECTED | FILE_SEL_HIGHLIGHTED); | file_select_deselect_all(&tree_view.space_file_, FILE_SEL_SELECTED | FILE_SEL_HIGHLIGHTED); | ||||
| WM_main_add_notifier(NC_SPACE | ND_SPACE_FILE_LIST, nullptr); | WM_main_add_notifier(NC_SPACE | ND_SPACE_FILE_LIST, nullptr); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines | |||||