diff options
Diffstat (limited to 'source/blender/editors/transform/transform_convert_mesh_uv.c')
-rw-r--r-- | source/blender/editors/transform/transform_convert_mesh_uv.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert_mesh_uv.c b/source/blender/editors/transform/transform_convert_mesh_uv.c index 5328bac7f79..337f7a83f9e 100644 --- a/source/blender/editors/transform/transform_convert_mesh_uv.c +++ b/source/blender/editors/transform/transform_convert_mesh_uv.c @@ -266,7 +266,7 @@ void createTransUVs(bContext *C, TransInfo *t) * * \{ */ -void flushTransUVs(TransInfo *t) +static void flushTransUVs(TransInfo *t) { SpaceImage *sima = t->area->spacedata.first; const bool use_pixel_snap = ((sima->pixel_snap_mode != SI_PIXEL_SNAP_DISABLED) && @@ -314,4 +314,21 @@ void flushTransUVs(TransInfo *t) } } +/* helper for recalcData() - for Image Editor transforms */ +void recalcData_uv(TransInfo *t) +{ + SpaceImage *sima = t->area->spacedata.first; + + flushTransUVs(t); + if (sima->flag & SI_LIVE_UNWRAP) { + ED_uvedit_live_unwrap_re_solve(); + } + + FOREACH_TRANS_DATA_CONTAINER (t, tc) { + if (tc->data_len) { + DEG_id_tag_update(tc->obedit->data, 0); + } + } +} + /** \} */ |