Assets: add function to copy asset data to another ID #108547

Manually merged
Sybren A. Stüvel merged 7 commits from dr.sybren/blender:pr/asset-data-copy-to-id into main 2023-06-08 10:15:03 +02:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit 3bceeda146 - Show all commits

View File

@ -739,10 +739,8 @@ static void rna_ID_asset_data_set(PointerRNA *ptr, PointerRNA value, struct Repo
const bool assigned_ok = ED_asset_copy_to_id(asset_data, destination);
if (!assigned_ok) {
BKE_reportf(reports,
RPT_ERROR,
"destination '%s' is of a type that cannot be an asset",
destination->name + 2);
BKE_reportf(
reports, RPT_ERROR, "'%s' is of a type that cannot be an asset", destination->name + 2);
return;
}