diff options
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_intern.h')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_intern.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_intern.h b/source/blender/depsgraph/intern/depsgraph_intern.h index 40229ef8f37..df5e51a3910 100644 --- a/source/blender/depsgraph/intern/depsgraph_intern.h +++ b/source/blender/depsgraph/intern/depsgraph_intern.h @@ -46,8 +46,9 @@ extern "C" { #include "intern/nodes/deg_node_operation.h" #include "intern/depsgraph.h" -struct Main; +struct DEGEditorUpdateContext; struct Group; +struct Main; struct Scene; namespace DEG { @@ -105,15 +106,24 @@ DepsNodeFactory *deg_type_get_factory(const eDepsNode_Type type); /* Editors Integration -------------------------------------------------- */ -void deg_editors_id_update(struct Main *bmain, struct ID *id); +void deg_editors_id_update(const DEGEditorUpdateContext *update_ctx, + struct ID *id); -void deg_editors_scene_update(struct Main *bmain, struct Scene *scene, bool updated); +void deg_editors_scene_update(const DEGEditorUpdateContext *update_ctx, + bool updated); + +#define DEG_DEBUG_PRINTF(...) \ + do { \ + if (G.debug & G_DEBUG_DEPSGRAPH) { \ + fprintf(stderr, __VA_ARGS__); \ + fflush(stderr); \ + } \ + } while (0) -#define DEG_DEBUG_PRINTF(...) \ - do { \ - if (G.debug & G_DEBUG_DEPSGRAPH) { \ - fprintf(stderr, __VA_ARGS__); \ - } \ +#define DEG_ERROR_PRINTF(...) \ + do { \ + fprintf(stderr, __VA_ARGS__); \ + fflush(stderr); \ } while (0) } // namespace DEG |