Blender  V3.3
depsgraph_update.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2013 Blender Foundation. All rights reserved. */
3 
9 
10 #include "DEG_depsgraph.h"
11 
12 #include "intern/depsgraph_type.h"
13 
14 namespace deg = blender::deg;
15 
16 namespace blender::deg {
17 
20 
21 void deg_editors_id_update(const DEGEditorUpdateContext *update_ctx, ID *id)
22 {
23  if (deg_editor_update_id_cb != nullptr) {
24  deg_editor_update_id_cb(update_ctx, id);
25  }
26 }
27 
28 void deg_editors_scene_update(const DEGEditorUpdateContext *update_ctx, bool updated)
29 {
30  if (deg_editor_update_scene_cb != nullptr) {
31  deg_editor_update_scene_cb(update_ctx, updated);
32  }
33 }
34 
35 } // namespace blender::deg
36 
38 {
41 }
void(* DEG_EditorUpdateSceneCb)(const DEGEditorUpdateContext *update_ctx, bool updated)
void(* DEG_EditorUpdateIDCb)(const DEGEditorUpdateContext *update_ctx, struct ID *id)
void DEG_editors_set_update_cb(DEG_EditorUpdateIDCb id_func, DEG_EditorUpdateSceneCb scene_func)
static DEG_EditorUpdateIDCb deg_editor_update_id_cb
void deg_editors_id_update(const DEGEditorUpdateContext *update_ctx, ID *id)
void deg_editors_scene_update(const DEGEditorUpdateContext *update_ctx, bool updated)
static DEG_EditorUpdateSceneCb deg_editor_update_scene_cb
Definition: DNA_ID.h:368