diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-29 16:19:56 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-29 16:21:30 +0300 |
commit | cb5bfb32ba01705cf88e2c21eb61f7b9b24688da (patch) | |
tree | df4e98581ab00576a8625d5dc3f534bd964b21da /source/blender/depsgraph/intern/depsgraph_update.cc | |
parent | 81fb08ad57d6a71f40fa412ba14961a89cca0278 (diff) |
Depsgraph: introduce blender::deg namespace
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8150
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_update.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_update.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_update.cc b/source/blender/depsgraph/intern/depsgraph_update.cc index d10bfaaace8..98ff136f7bc 100644 --- a/source/blender/depsgraph/intern/depsgraph_update.cc +++ b/source/blender/depsgraph/intern/depsgraph_update.cc @@ -27,7 +27,10 @@ #include "intern/depsgraph_type.h" -namespace DEG { +namespace deg = blender::deg; + +namespace blender { +namespace deg { static DEG_EditorUpdateIDCb deg_editor_update_id_cb = nullptr; static DEG_EditorUpdateSceneCb deg_editor_update_scene_cb = nullptr; @@ -46,11 +49,12 @@ void deg_editors_scene_update(const DEGEditorUpdateContext *update_ctx, bool upd } } -} // namespace DEG +} // namespace deg +} // namespace blender /* Set callbacks which are being called when depsgraph changes. */ void DEG_editors_set_update_cb(DEG_EditorUpdateIDCb id_func, DEG_EditorUpdateSceneCb scene_func) { - DEG::deg_editor_update_id_cb = id_func; - DEG::deg_editor_update_scene_cb = scene_func; + deg::deg_editor_update_id_cb = id_func; + deg::deg_editor_update_scene_cb = scene_func; } |