Fix T99794: regression from uv unwrap selected
Restore only_selected_faces flag inadvertently changed by c0e4532331
Differential Revision: https://developer.blender.org/D15480
This commit is contained in:
parent
135e530356
commit
37922eab90
Notes:
blender-bot
2023-02-14 11:01:33 +01:00
Referenced by issue #99794, Regression: Unwrap fails with a single selected face
|
@ -1915,7 +1915,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
|
|||
|
||||
UnwrapOptions options = {
|
||||
.topology_from_uvs = false,
|
||||
.only_selected_faces = false,
|
||||
.only_selected_faces = true,
|
||||
.only_selected_uvs = false,
|
||||
.fill_holes = RNA_boolean_get(op->ptr, "fill_holes"),
|
||||
.correct_aspect = RNA_boolean_get(op->ptr, "correct_aspect"),
|
||||
|
@ -1926,7 +1926,6 @@ static int unwrap_exec(bContext *C, wmOperator *op)
|
|||
if (CTX_wm_space_image(C)) {
|
||||
/* Inside the UV Editor, only unwrap selected UVs. */
|
||||
options.only_selected_uvs = true;
|
||||
options.only_selected_faces = true;
|
||||
options.pin_unselected = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue