Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/asset/ED_asset_temp_id_consumer.h
- This file was copied from source/blender/editors/include/ED_asset.h.
| Show All 9 Lines | |||||
| * GNU General Public License for more details. | * GNU General Public License for more details. | ||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup editors | * \ingroup edasset | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "DNA_ID_enums.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| bool ED_asset_mark_id(const struct bContext *C, struct ID *id); | typedef struct AssetTempIDConsumer AssetTempIDConsumer; | ||||
| bool ED_asset_clear_id(struct ID *id); | |||||
| bool ED_asset_can_make_single_from_context(const struct bContext *C); | |||||
| void ED_operatortypes_asset(void); | struct AssetHandle; | ||||
| struct AssetLibraryReference; | |||||
| struct bContext; | |||||
| struct Main; | |||||
| struct ReportList; | |||||
| AssetTempIDConsumer *ED_asset_temp_id_consumer_create(const struct AssetHandle *handle); | |||||
| void ED_asset_temp_id_consumer_free(AssetTempIDConsumer **consumer); | |||||
| struct ID *ED_asset_temp_id_consumer_ensure_local_id( | |||||
| AssetTempIDConsumer *consumer, | |||||
| const struct bContext *C, | |||||
| const struct AssetLibraryReference *asset_library, | |||||
| ID_Type id_type, | |||||
| struct Main *bmain, | |||||
| struct ReportList *reports); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||