diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-12 00:28:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-12 00:28:49 +0300 |
commit | 32b49f9e9f2f93124c0c041104d7e7c558d8d3ad (patch) | |
tree | 59519bf03e5c4f95124eb2c376bfe0815deb262b /source/blender/editors | |
parent | 62ffc0c2c94ca17ab1985d8ddd0ad06674b6f838 (diff) |
Fix transforming armature origins
Using geometry update doesn't work on armatures.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_convert_object.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert_object.c b/source/blender/editors/transform/transform_convert_object.c index e61a00a0d31..6142e9628a4 100644 --- a/source/blender/editors/transform/transform_convert_object.c +++ b/source/blender/editors/transform/transform_convert_object.c @@ -148,7 +148,13 @@ void trans_obdata_in_obmode_update_all(TransInfo *t) invert_m4(dmat); ED_object_data_xform_by_mat4(xf->xod, dmat); - DEG_id_tag_update(id, ID_RECALC_GEOMETRY); + if (xf->ob->type == OB_ARMATURE) { + /* TODO: none of the current flags properly update armatures, needs investigation. */ + DEG_id_tag_update(id, 0); + } + else { + DEG_id_tag_update(id, ID_RECALC_GEOMETRY); + } } } |