Blender V4.5
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
8
9#pragma once
10
11#include <cstdint>
12
13#include "BLI_index_mask_fwd.hh"
14
15struct Depsgraph;
16struct Mesh;
17struct Object;
18struct Scene;
19struct wmOperator;
20namespace blender::bke::pbvh {
21class Node;
22}
23
25
38
39struct StepData;
40
47void push_node(const Depsgraph &depsgraph,
48 const Object &object,
49 const bke::pbvh::Node *node,
50 undo::Type type);
51void push_nodes(const Depsgraph &depsgraph,
52 Object &object,
53 const IndexMask &node_mask,
54 undo::Type type);
55
61void push_begin(const Scene &scene, Object &ob, const wmOperator *op);
62
68void push_enter_sculpt_mode(const Scene &scene, Object &ob, const wmOperator *op);
69
74void push_begin_ex(const Scene &scene, Object &ob, const char *name);
75void push_end(Object &ob);
76void push_end_ex(Object &ob, bool use_nested_undo);
77
78void restore_from_bmesh_enter_geometry(const StepData &step_data, Mesh &mesh);
80
81void restore_position_from_undo_step(const Depsgraph &depsgraph, Object &object);
82} // namespace blender::ed::sculpt_paint::undo
float[4] Color
BPy_StructRNA * depsgraph
void push_nodes(const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const Type type)
void push_begin_ex(const Scene &, Object &ob, const char *name)
void push_enter_sculpt_mode(const Scene &, Object &ob, const wmOperator *op)
void restore_position_from_undo_step(const Depsgraph &depsgraph, Object &object)
Definition sculpt.cc:1032
void push_node(const Depsgraph &depsgraph, const Object &object, const bke::pbvh::Node *node, const Type type)
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)