forked from bartvdbraak/blender
Fix #25456: using Live Unwrap always unwraps with method Angle Based.
This commit is contained in:
parent
05cfe50436
commit
9b4adf76e3
@ -496,7 +496,7 @@ static ParamHandle *liveHandle = NULL;
|
||||
void ED_uvedit_live_unwrap_begin(Scene *scene, Object *obedit)
|
||||
{
|
||||
EditMesh *em= BKE_mesh_get_editmesh((Mesh*)obedit->data);
|
||||
short abf = scene->toolsettings->unwrapper == 1;
|
||||
short abf = scene->toolsettings->unwrapper == 0;
|
||||
short fillholes = scene->toolsettings->uvcalc_flag & UVCALC_FILLHOLES;
|
||||
|
||||
if(!ED_uvedit_test(obedit)) {
|
||||
@ -822,6 +822,9 @@ static int unwrap_exec(bContext *C, wmOperator *op)
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
/* remember last method for live unwrap */
|
||||
scene->toolsettings->unwrapper = method;
|
||||
|
||||
handle= construct_param_handle(scene, em, 0, fill_holes, 1, correct_aspect);
|
||||
|
||||
param_lscm_begin(handle, PARAM_FALSE, method == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user