Fix own commit: broke add background image
This commit is contained in:
parent
e7cb4d2a0d
commit
eb62d47ff4
Notes:
blender-bot
2023-02-14 09:47:10 +01:00
Referenced by issue #42746, Properties (N Panel) > Background Images > Add image | Broken Referenced by issue #42734, Add Background image not working Referenced by issue #42723, Regression: cannot add background image in current master
|
@ -4341,13 +4341,11 @@ static int background_image_add_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
static int background_image_add_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
|
||||
{
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
Image *ima = NULL;
|
||||
Image *ima;
|
||||
BGpic *bgpic;
|
||||
|
||||
ima = (Image *)WM_operator_drop_load_path(C, op, ID_IM);
|
||||
if (!ima) {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
/* may be NULL, continue anyway */
|
||||
|
||||
bgpic = background_image_add(C);
|
||||
bgpic->ima = ima;
|
||||
|
|
Loading…
Reference in New Issue