Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/asset/intern/asset_ops.cc
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | for (PointerRNA &ptr : ids) { | ||||
| BLI_assert(RNA_struct_is_ID(ptr.type)); | BLI_assert(RNA_struct_is_ID(ptr.type)); | ||||
| ID *id = static_cast<ID *>(ptr.data); | ID *id = static_cast<ID *>(ptr.data); | ||||
| if (id->asset_data) { | if (id->asset_data) { | ||||
| stats.tot_already_asset++; | stats.tot_already_asset++; | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (ED_asset_mark_id(&C, id)) { | if (ED_asset_mark_id(id)) { | ||||
| ED_asset_generate_preview(&C, id); | |||||
| stats.last_id = id; | stats.last_id = id; | ||||
| stats.tot_created++; | stats.tot_created++; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| bool AssetMarkHelper::wasSuccessful() const | bool AssetMarkHelper::wasSuccessful() const | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines | |||||