Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_parametrizer.c
| Context not available. | |||||
| if (phandle->ncharts == 0) | if (phandle->ncharts == 0) | ||||
| return; | return; | ||||
| if (phandle->aspx != phandle->aspy) | |||||
| param_scale(handle, 1.0f / phandle->aspx, 1.0f / phandle->aspy); | |||||
| /* this could be its own function */ | /* this could be its own function */ | ||||
| if (do_rotate) { | if (do_rotate) { | ||||
| param_pack_rotate(handle); | param_pack_rotate(handle); | ||||
| } | } | ||||
| if (phandle->aspx != phandle->aspy) | |||||
| param_scale(handle, 1.0f / phandle->aspx, 1.0f / phandle->aspy); | |||||
| /* we may not use all these boxes */ | /* we may not use all these boxes */ | ||||
| boxarray = MEM_mallocN(phandle->ncharts * sizeof(BoxPack), "BoxPack box"); | boxarray = MEM_mallocN(phandle->ncharts * sizeof(BoxPack), "BoxPack box"); | ||||
| Context not available. | |||||