Cleanup: Remove unnecessary code for asset view UI template

From what I can tell there is no reason anymore to do this. The design
has changed since this was added.
This commit is contained in:
Julian Eisel 2021-07-29 17:16:45 +02:00
parent 49c0b9ec43
commit 8cb4e3d046
1 changed files with 0 additions and 7 deletions

View File

@ -182,13 +182,6 @@ static void asset_view_template_refresh_asset_collection(
nullptr, &RNA_FileSelectEntry, const_cast<FileDirEntry *>(asset.file_data), &fileptr);
RNA_pointer_set(&itemptr, "file_data", fileptr);
/* Copy name from file to asset-handle name ID-property. */
char name[MAX_NAME];
PropertyRNA *file_name_prop = RNA_struct_name_property(fileptr.type);
RNA_property_string_get(&fileptr, file_name_prop, name);
PropertyRNA *asset_name_prop = RNA_struct_name_property(&RNA_AssetHandle);
RNA_property_string_set(&itemptr, asset_name_prop, name);
return true;
});
}