mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T67105: Missing Update Add Camera Background Image
Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D5284
This commit is contained in:
parent
5d4bd8f1bb
commit
098f60f1b8
1 changed files with 3 additions and 0 deletions
|
|
@ -4661,6 +4661,7 @@ static int background_image_add_invoke(bContext *C, wmOperator *op, const wmEven
|
|||
cam->flag |= CAM_SHOW_BG_IMAGE;
|
||||
|
||||
WM_event_add_notifier(C, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, cam);
|
||||
DEG_id_tag_update(&cam->id, ID_RECALC_COPY_ON_WRITE);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
|
@ -4721,6 +4722,8 @@ static int background_image_remove_exec(bContext *C, wmOperator *op)
|
|||
BKE_camera_background_image_remove(cam, bgpic_rem);
|
||||
|
||||
WM_event_add_notifier(C, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, cam);
|
||||
DEG_id_tag_update(&cam->id, ID_RECALC_COPY_ON_WRITE);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue