diff options
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; } |