Fix unnecessary redraw of 3D views when making changes in compositing nodes.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user