Fix "Image from View" ignored filepath property

Assign the filepath from the operator to the generated image.
This commit is contained in:
Campbell Barton
2025-03-07 15:47:43 +11:00
parent f7ba05991f
commit f6d730d6e6

View File

@@ -6320,6 +6320,8 @@ static int texture_paint_image_from_view_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
STRNCPY(ibuf->filepath, filename);
image = BKE_image_add_from_imbuf(bmain, ibuf, "image_view");
/* Drop reference to ibuf so that the image owns it */