Blender  V2.93
depsgraph_tag.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2019 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #include "intern/node/deg_node.h"
25 
26 struct ID;
27 struct Main;
28 
29 namespace blender {
30 namespace deg {
31 
32 struct Depsgraph;
33 
34 /* Get type of a node which corresponds to a ID_RECALC_GEOMETRY tag. */
36 
37 /* Tag given ID for an update in all registered dependency graphs. */
38 void id_tag_update(Main *bmain, ID *id, int flag, eUpdateSource update_source);
39 
40 /* Tag given ID for an update with in a given dependency graph. */
42  Main *bmain, Depsgraph *graph, ID *id, int flag, eUpdateSource update_source);
43 
44 } // namespace deg
45 } // namespace blender
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
Depsgraph * graph
NodeType geometry_tag_to_component(const ID *id)
void id_tag_update(Main *bmain, ID *id, int flag, eUpdateSource update_source)
void graph_id_tag_update(Main *bmain, Depsgraph *graph, ID *id, int flag, eUpdateSource update_source)
Definition: DNA_ID.h:273
Definition: BKE_main.h:116