Fix "Image from View" ignored filepath property
Assign the filepath from the operator to the generated image.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user