Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_asset.c
| Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | static PointerRNA rna_AssetHandle_local_id_get(PointerRNA *ptr) | ||||
| return rna_pointer_inherit_refine(ptr, &RNA_ID, id); | return rna_pointer_inherit_refine(ptr, &RNA_ID, id); | ||||
| } | } | ||||
| const EnumPropertyItem *rna_asset_library_reference_itemf(bContext *UNUSED(C), | const EnumPropertyItem *rna_asset_library_reference_itemf(bContext *UNUSED(C), | ||||
| PointerRNA *UNUSED(ptr), | PointerRNA *UNUSED(ptr), | ||||
| PropertyRNA *UNUSED(prop), | PropertyRNA *UNUSED(prop), | ||||
| bool *r_free) | bool *r_free) | ||||
| { | { | ||||
| const EnumPropertyItem *items = ED_asset_library_reference_to_rna_enum_itemf(); | const EnumPropertyItem *items = ED_asset_library_reference_to_rna_enum_itemf(true); | ||||
| if (!items) { | if (!items) { | ||||
| *r_free = false; | *r_free = false; | ||||
| } | } | ||||
| *r_free = true; | *r_free = true; | ||||
| return items; | return items; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines | |||||