Blender V4.3
sculpt_undo.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BLI_index_mask_fwd.hh"
12#include "BLI_math_vector.hh"
13
15
16struct BMLogEntry;
17struct Depsgraph;
18struct Mesh;
19struct Object;
20struct Scene;
21struct wmOperator;
22namespace blender::bke::pbvh {
23class Node;
24}
25
27
28enum class Type : int8_t {
29 None,
33 Mask,
37 FaceSet,
38 Color,
39};
40
41struct StepData;
42
49void push_node(const Depsgraph &depsgraph,
50 const Object &object,
51 const bke::pbvh::Node *node,
52 undo::Type type);
53void push_nodes(const Depsgraph &depsgraph,
54 Object &object,
55 const IndexMask &node_mask,
56 undo::Type type);
57
63void push_begin(const Scene &scene, Object &ob, const wmOperator *op);
64
69void push_begin_ex(const Scene &scene, Object &ob, const char *name);
70void push_end(Object &ob);
71void push_end_ex(Object &ob, bool use_nested_undo);
72
73void restore_from_bmesh_enter_geometry(const StepData &step_data, Mesh &mesh);
75
76void restore_position_from_undo_step(const Depsgraph &depsgraph, Object &object);
77} // namespace blender::ed::sculpt_paint::undo
const Depsgraph * depsgraph
void push_nodes(const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const Type type)
void push_node(const Depsgraph &depsgraph, const Object &object, const bke::pbvh::Node *node, Type type)
void push_begin_ex(const Scene &, Object &ob, const char *name)
void restore_position_from_undo_step(const Depsgraph &depsgraph, Object &object)
Definition sculpt.cc:1014
void push_begin(const Scene &scene, Object &ob, const wmOperator *op)
void restore_from_bmesh_enter_geometry(const StepData &step_data, Mesh &mesh)
void push_end_ex(Object &ob, const bool use_nested_undo)
signed char int8_t
Definition stdint.h:75