Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 02:41:27 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 02:41:27 +0400
commit8390aa5181d3dd9c8458fa68c2add910c1cd12e9 (patch)
treecd471a38f3c43a5d27d2f7545a2bebdd2d7f799c /source/blender
parent0309f442bb232410e4c7594fa659238bd3854127 (diff)
Fix unnecessary redraw of 3D views when making changes in compositing nodes.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/include/ED_object.h2
-rw-r--r--source/blender/editors/space_node/node_edit.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h
index 90b131e5acc..e891f648713 100644
--- a/source/blender/editors/include/ED_object.h
+++ b/source/blender/editors/include/ED_object.h
@@ -69,6 +69,8 @@ struct PointerRNA;
struct PropertyRNA;
struct EnumPropertyItem;
+enum eVGroupSelect;
+
/* object_edit.c */
struct Object *ED_object_context(struct bContext *C); /* context.object */
struct Object *ED_object_active_context(struct bContext *C); /* context.object or context.active_object */
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index 89fa58cd750..e10cba43d71 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -222,7 +222,7 @@ static void compo_updatejob(void *cjv)
cj->need_sync = FALSE;
}
- WM_main_add_notifier(NC_WINDOW | ND_DRAW, NULL);
+ WM_main_add_notifier(NC_SCENE | ND_COMPO_RESULT, NULL);
}
static void compo_progressjob(void *cjv, float progress)
@@ -299,7 +299,7 @@ void ED_node_composite_job(const bContext *C, struct bNodeTree *nodetree, Scene
/* setup job */
WM_jobs_customdata_set(wm_job, cj, compo_freejob);
- WM_jobs_timer(wm_job, 0.1, NC_SCENE, NC_SCENE | ND_COMPO_RESULT);
+ WM_jobs_timer(wm_job, 0.1, NC_SCENE | ND_COMPO_RESULT, NC_SCENE | ND_COMPO_RESULT);
WM_jobs_callbacks(wm_job, compo_startjob, compo_initjob, compo_updatejob, NULL);
WM_jobs_start(CTX_wm_manager(C), wm_job);