Fix #37312, Backdrop value offset is not refreshed. Backdrop operators need to push notifiers to redraw the node editor buttons.
This commit is contained in:
@@ -220,6 +220,7 @@ static int snode_bg_viewmove_modal(bContext *C, wmOperator *op, const wmEvent *e
|
||||
CLAMP(snode->yof, nvm->ymin, nvm->ymax);
|
||||
|
||||
ED_region_tag_redraw(ar);
|
||||
WM_main_add_notifier(NC_NODE | ND_DISPLAY, NULL);
|
||||
|
||||
break;
|
||||
|
||||
@@ -304,6 +305,7 @@ static int backimage_zoom_exec(bContext *C, wmOperator *op)
|
||||
|
||||
snode->zoom *= fac;
|
||||
ED_region_tag_redraw(ar);
|
||||
WM_main_add_notifier(NC_NODE | ND_DISPLAY, NULL);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
@@ -361,6 +363,7 @@ static int backimage_fit_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
snode->yof = 0;
|
||||
|
||||
ED_region_tag_redraw(ar);
|
||||
WM_main_add_notifier(NC_NODE | ND_DISPLAY, NULL);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user