Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-07 15:52:14 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-07 15:54:59 +0300
commit012a44cff11ffb12a65409ba68b4e66caded28a7 (patch)
tree4e4170772f3cfee7c7001bb64f1707b7b39affdf /source/blender/editors/uvedit/uvedit_unwrap_ops.c
parentcc61b21dff5e58031a165faf9f7c26a9e6032316 (diff)
Fix T57640: UV unwrap packing not working without sync selection.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 9a7fd97bdf3..ee637d4ae5e 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -849,11 +849,11 @@ void ED_uvedit_pack_islands(Scene *scene, Object *ob, BMesh *bm, bool selected,
void ED_uvedit_pack_islands_multi(
Scene *scene, Object **objects, const uint objects_len,
- bool selected, bool correct_aspect, bool do_rotate)
+ bool selected, bool correct_aspect, bool do_rotate, bool implicit)
{
ParamHandle *handle;
handle = construct_param_handle_multi(
- scene, objects, objects_len, true, false, selected, correct_aspect);
+ scene, objects, objects_len, implicit, false, selected, correct_aspect);
param_pack(handle, scene->toolsettings->uvcalc_margin, do_rotate);
param_flush(handle);
param_delete(handle);
@@ -878,7 +878,7 @@ static int pack_islands_exec(bContext *C, wmOperator *op)
else
RNA_float_set(op->ptr, "margin", scene->toolsettings->uvcalc_margin);
- ED_uvedit_pack_islands_multi(scene, objects, objects_len, true, true, do_rotate);
+ ED_uvedit_pack_islands_multi(scene, objects, objects_len, true, true, do_rotate, true);
for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
Object *obedit = objects[ob_index];
@@ -1516,7 +1516,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
}
- ED_uvedit_pack_islands_multi(scene, objects, objects_len, true, true, true);
+ ED_uvedit_pack_islands_multi(scene, objects, objects_len, true, true, true, implicit);
MEM_freeN(objects);