Cleanup: Move `BKE_blender_undo.h` to full Cpp header `BKE_blender_undo.hh`.
This commit is contained in:
parent
d8d44a62f7
commit
3df7939eec
|
@ -1,32 +0,0 @@
|
|||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include "BKE_undo_system.hh"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct Main;
|
||||
struct MemFileUndoData;
|
||||
struct bContext;
|
||||
|
||||
#define BKE_UNDO_STR_MAX 64
|
||||
|
||||
struct MemFileUndoData *BKE_memfile_undo_encode(struct Main *bmain,
|
||||
struct MemFileUndoData *mfu_prev);
|
||||
bool BKE_memfile_undo_decode(struct MemFileUndoData *mfu,
|
||||
enum eUndoStepDir undo_direction,
|
||||
bool use_old_bmain_data,
|
||||
struct bContext *C);
|
||||
void BKE_memfile_undo_free(struct MemFileUndoData *mfu);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,23 @@
|
|||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include "BKE_undo_system.hh"
|
||||
|
||||
struct Main;
|
||||
struct MemFileUndoData;
|
||||
struct bContext;
|
||||
|
||||
#define BKE_UNDO_STR_MAX 64
|
||||
|
||||
MemFileUndoData *BKE_memfile_undo_encode(Main *bmain, MemFileUndoData *mfu_prev);
|
||||
bool BKE_memfile_undo_decode(MemFileUndoData *mfu,
|
||||
eUndoStepDir undo_direction,
|
||||
bool use_old_bmain_data,
|
||||
bContext *C);
|
||||
void BKE_memfile_undo_free(MemFileUndoData *mfu);
|
|
@ -340,7 +340,7 @@ set(SRC
|
|||
BKE_bake_items_socket.hh
|
||||
BKE_blender.h
|
||||
BKE_blender_copybuffer.hh
|
||||
BKE_blender_undo.h
|
||||
BKE_blender_undo.hh
|
||||
BKE_blender_user_menu.hh
|
||||
BKE_blender_version.h
|
||||
BKE_blendfile.hh
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_appdir.hh"
|
||||
#include "BKE_blender_undo.h" /* own include */
|
||||
#include "BKE_blender_undo.hh" /* own include */
|
||||
#include "BKE_blendfile.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "BLI_listbase.h"
|
||||
|
||||
#include "BKE_blender_undo.h"
|
||||
#include "BKE_blender_undo.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_gpencil_legacy.h"
|
||||
#include "BKE_undo_system.hh"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
#include "BKE_blender_undo.h"
|
||||
#include "BKE_blender_undo.hh"
|
||||
#include "BKE_brush.hh"
|
||||
#include "BKE_colorband.hh"
|
||||
#include "BKE_colortools.hh"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "BKE_blender_undo.h"
|
||||
#include "BKE_blender_undo.hh"
|
||||
#include "BKE_callbacks.h"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_global.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "DNA_object_types.h"
|
||||
#include "DNA_scene_types.h"
|
||||
|
||||
#include "BKE_blender_undo.h"
|
||||
#include "BKE_blender_undo.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_lib_id.hh"
|
||||
#include "BKE_lib_query.hh"
|
||||
|
|
Loading…
Reference in New Issue