Tooltips for assets in the asset shelf now don't only display the name, but also the description saved in the asset's metadata. This is what we usually do when assets are displayed, for example in the asset browser or in add menus. Here it was just a small bit of polish that was never done.
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*
|
|
* The public API for assets is defined in dedicated headers. This is a utility file that just
|
|
* includes all of these.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* Barely anything here. Just general editor level functions. Actual asset level code is in
|
|
* dedicated headers. */
|
|
|
|
#include "../asset/ED_asset_catalog.hh"
|
|
#include "../asset/ED_asset_handle.hh"
|
|
#include "../asset/ED_asset_library.hh"
|
|
#include "../asset/ED_asset_list.hh"
|
|
#include "../asset/ED_asset_mark_clear.hh"
|
|
#include "../asset/ED_asset_temp_id_consumer.hh"
|
|
#include "../asset/ED_asset_type.hh"
|
|
|
|
#include "../asset/ED_asset_catalog.hh"
|
|
#include "../asset/ED_asset_filter.hh"
|
|
#include "../asset/ED_asset_import.hh"
|
|
#include "../asset/ED_asset_list.hh"
|
|
|
|
namespace blender::ed::asset {
|
|
|
|
std::string asset_tooltip(const asset_system::AssetRepresentation &asset,
|
|
bool include_name = true);
|
|
|
|
void operatortypes_asset();
|
|
|
|
} // namespace blender::ed::asset
|