Brush Assets: Add catalog option to asset pushing operator #118382

Merged
Hans Goudey merged 26 commits from HooglyBoogly/blender:brush-assets-save-catalog-option into brush-assets-project 2024-02-21 14:03:41 +01:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit a203e6f54d - Show all commits

View File

@ -1353,6 +1353,7 @@ static int brush_asset_save_as_invoke(bContext *C, wmOperator *op, const wmEvent
Brush *brush = BKE_paint_brush(paint);
RNA_string_set(op->ptr, "name", brush->id.name + 2);
if (const bUserAssetLibrary *library = brush_asset_get_default_library()) {
const AssetLibraryReference library_ref = user_library_to_library_ref(*library);
const int enum_value = asset::library_reference_to_enum_value(&library_ref);