Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_filebrowser.py
| Show First 20 Lines • Show All 844 Lines • ▼ Show 20 Lines | classes = ( | ||||
| ASSETBROWSER_PT_metadata_tags, | ASSETBROWSER_PT_metadata_tags, | ||||
| ASSETBROWSER_UL_metadata_tags, | ASSETBROWSER_UL_metadata_tags, | ||||
| ASSETBROWSER_MT_context_menu, | ASSETBROWSER_MT_context_menu, | ||||
| ) | ) | ||||
| def asset_path_str_get(self): | def asset_path_str_get(self): | ||||
| asset_file_handle = bpy.context.asset_file_handle | asset_file_handle = bpy.context.asset_file_handle | ||||
| if asset_file_handle is None: | if asset_file_handle is None: | ||||
| return None | return "" | ||||
| if asset_file_handle.local_id: | if asset_file_handle.local_id: | ||||
| return "Current File" | return "Current File" | ||||
| asset_library_ref = bpy.context.asset_library_ref | asset_library_ref = bpy.context.asset_library_ref | ||||
| return bpy.types.AssetHandle.get_full_library_path(asset_file_handle, asset_library_ref) | return bpy.types.AssetHandle.get_full_library_path(asset_file_handle, asset_library_ref) | ||||
| Show All 22 Lines | |||||